Package org.graylog2.indexer.messages
Class IndexBlockRetryAttempt
java.lang.Object
org.graylog2.indexer.messages.IndexBlockRetryAttempt
- All Implemented Interfaces:
com.github.rholder.retry.Attempt<Void>
public class IndexBlockRetryAttempt
extends Object
implements com.github.rholder.retry.Attempt<Void>
This is only used for reuse of a wait strategy
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
IndexBlockRetryAttempt
public IndexBlockRetryAttempt(long number)
-
-
Method Details
-
getAttemptNumber
public long getAttemptNumber()- Specified by:
getAttemptNumberin interfacecom.github.rholder.retry.Attempt<Void>
-
getDelaySinceFirstAttempt
public long getDelaySinceFirstAttempt()- Specified by:
getDelaySinceFirstAttemptin interfacecom.github.rholder.retry.Attempt<Void>
-
get
- Specified by:
getin interfacecom.github.rholder.retry.Attempt<Void>- Throws:
ExecutionException
-
hasResult
public boolean hasResult()- Specified by:
hasResultin interfacecom.github.rholder.retry.Attempt<Void>
-
hasException
public boolean hasException()- Specified by:
hasExceptionin interfacecom.github.rholder.retry.Attempt<Void>
-
getResult
- Specified by:
getResultin interfacecom.github.rholder.retry.Attempt<Void>- Throws:
IllegalStateException
-
getExceptionCause
- Specified by:
getExceptionCausein interfacecom.github.rholder.retry.Attempt<Void>- Throws:
IllegalStateException
-