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
-
Method Summary
-
Constructor Details
-
IndexBlockRetryAttempt
public IndexBlockRetryAttempt(long number)
-
-
Method Details
-
getAttemptNumber
public long getAttemptNumber()- Specified by:
getAttemptNumber
in interfacecom.github.rholder.retry.Attempt<Void>
-
getDelaySinceFirstAttempt
public long getDelaySinceFirstAttempt()- Specified by:
getDelaySinceFirstAttempt
in interfacecom.github.rholder.retry.Attempt<Void>
-
get
- Specified by:
get
in interfacecom.github.rholder.retry.Attempt<Void>
- Throws:
ExecutionException
-
hasResult
public boolean hasResult()- Specified by:
hasResult
in interfacecom.github.rholder.retry.Attempt<Void>
-
hasException
public boolean hasException()- Specified by:
hasException
in interfacecom.github.rholder.retry.Attempt<Void>
-
getResult
- Specified by:
getResult
in interfacecom.github.rholder.retry.Attempt<Void>
- Throws:
IllegalStateException
-
getExceptionCause
- Specified by:
getExceptionCause
in interfacecom.github.rholder.retry.Attempt<Void>
- Throws:
IllegalStateException
-