Package com.xebialabs.xlrelease.utils
Class ConditionBuilder<R>
java.lang.Object
com.xebialabs.xlrelease.utils.ConditionBuilder<R>
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionList<com.xebialabs.xlrelease.domain.events.XLReleaseEvent> collect(scala.PartialFunction<com.xebialabs.xlrelease.domain.events.XLReleaseEvent, com.xebialabs.xlrelease.utils.MatchingAwaiter.MatcherEvent>... matchers) static <R> ConditionBuilder<R> protected longcom.xebialabs.xlrelease.utils.CleanupAwaiterlisten()never(scala.PartialFunction<com.xebialabs.xlrelease.domain.events.XLReleaseEvent, com.xebialabs.xlrelease.utils.MatchingAwaiter.MatcherEvent>... matchers) <T> scala.Option<T> pick(scala.PartialFunction<com.xebialabs.xlrelease.domain.events.XLReleaseEvent, scala.Option<T>> picker) until(long timeout, com.xebialabs.xlrelease.domain.events.XLReleaseEvent... eventsInOccurrenceOrder) until(long timeout, scala.PartialFunction<com.xebialabs.xlrelease.domain.events.XLReleaseEvent, com.xebialabs.xlrelease.utils.MatchingAwaiter.MatcherEvent>... matchers) until(com.xebialabs.xlrelease.domain.events.XLReleaseEvent... eventsInOccurrenceOrder) <S> R<S> R<S> R<S> Runtil(scala.PartialFunction<com.xebialabs.xlrelease.domain.events.XLReleaseEvent, com.xebialabs.xlrelease.utils.MatchingAwaiter.MatcherEvent>... matchers) untilAnyOf(com.xebialabs.xlrelease.domain.events.XLReleaseEvent... events) untilInAnyOrder(com.xebialabs.xlrelease.domain.events.XLReleaseEvent... events) withTimeout(long timeout)
-
Field Details
-
DEFAULT_TIMEOUT
public static final long DEFAULT_TIMEOUT- See Also:
-
-
Method Details
-
withTimeout
-
getTimeout
protected long getTimeout() -
execute
public static <R> ConditionBuilder<R> execute(com.xebialabs.xlrelease.events.XLReleaseEventBus eventBus, Supplier<R> runnable) -
until
public <S> R until(String planItemId, List<S> statuses) throws InterruptedException, TimeoutException - Throws:
InterruptedExceptionTimeoutException
-
until
public <S> R until(String planItemId, List<S> statuses, long timeout) throws InterruptedException, TimeoutException - Throws:
InterruptedExceptionTimeoutException
-
until
- Throws:
InterruptedExceptionTimeoutException
-
until
public R until(long timeout, com.xebialabs.xlrelease.domain.events.XLReleaseEvent... eventsInOccurrenceOrder) throws InterruptedException, TimeoutException - Throws:
InterruptedExceptionTimeoutException
-
until
public <S> R until(String planItemId, long timeout, S... statuses) throws InterruptedException, TimeoutException - Throws:
InterruptedExceptionTimeoutException
-
until
public R until(com.xebialabs.xlrelease.domain.events.XLReleaseEvent... eventsInOccurrenceOrder) throws InterruptedException, TimeoutException - Throws:
InterruptedExceptionTimeoutException
-
untilInAnyOrder
public R untilInAnyOrder(com.xebialabs.xlrelease.domain.events.XLReleaseEvent... events) throws InterruptedException, TimeoutException - Throws:
InterruptedExceptionTimeoutException
-
untilAnyOf
public R untilAnyOf(com.xebialabs.xlrelease.domain.events.XLReleaseEvent... events) throws InterruptedException, TimeoutException - Throws:
InterruptedExceptionTimeoutException
-
until
public R until(long timeout, scala.PartialFunction<com.xebialabs.xlrelease.domain.events.XLReleaseEvent, com.xebialabs.xlrelease.utils.MatchingAwaiter.MatcherEvent>... matchers) throws TimeoutException, InterruptedException- Throws:
TimeoutExceptionInterruptedException
-
until
public R until(scala.PartialFunction<com.xebialabs.xlrelease.domain.events.XLReleaseEvent, com.xebialabs.xlrelease.utils.MatchingAwaiter.MatcherEvent>... matchers) throws TimeoutException, InterruptedException- Throws:
TimeoutExceptionInterruptedException
-
never
public R never(scala.PartialFunction<com.xebialabs.xlrelease.domain.events.XLReleaseEvent, com.xebialabs.xlrelease.utils.MatchingAwaiter.MatcherEvent>... matchers) throws TimeoutException, InterruptedException- Throws:
TimeoutExceptionInterruptedException
-
collect
public List<com.xebialabs.xlrelease.domain.events.XLReleaseEvent> collect(scala.PartialFunction<com.xebialabs.xlrelease.domain.events.XLReleaseEvent, com.xebialabs.xlrelease.utils.MatchingAwaiter.MatcherEvent>... matchers) throws TimeoutException, InterruptedException- Throws:
TimeoutExceptionInterruptedException
-
listen
public com.xebialabs.xlrelease.utils.CleanupAwaiter listen() -
pick
public <T> scala.Option<T> pick(scala.PartialFunction<com.xebialabs.xlrelease.domain.events.XLReleaseEvent, scala.Option<T>> picker) throws TimeoutException, InterruptedException- Throws:
TimeoutExceptionInterruptedException
-