Package com.xebialabs.xlrelease.utils
Class BaseConditionAwaiter
java.lang.Object
com.xebialabs.xlrelease.utils.BaseConditionAwaiter
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
TaskCommentsAwaiter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final longprotected booleanprotected CountDownLatchprotected long -
Constructor Summary
ConstructorsConstructorDescriptionBaseConditionAwaiter(com.xebialabs.xlrelease.events.XLReleaseEventBus eventBus, long timeout) BaseConditionAwaiter(com.xebialabs.xlrelease.events.XLReleaseEventBus eventBus, long timeout, int latchCount) -
Method Summary
-
Field Details
-
DEFAULT_TIMEOUT
protected static final long DEFAULT_TIMEOUT- See Also:
-
failed
protected boolean failed -
latch
-
timeout
protected long timeout
-
-
Constructor Details
-
BaseConditionAwaiter
public BaseConditionAwaiter(com.xebialabs.xlrelease.events.XLReleaseEventBus eventBus, long timeout) -
BaseConditionAwaiter
public BaseConditionAwaiter(com.xebialabs.xlrelease.events.XLReleaseEventBus eventBus, long timeout, int latchCount)
-
-
Method Details
-
startListening
public void startListening() -
await
- Throws:
InterruptedExceptionTimeoutException
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
getErrorMessage
-
getErrorCause
-