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 Details

    • IndexBlockRetryAttempt

      public IndexBlockRetryAttempt(long number)
  • Method Details

    • getAttemptNumber

      public long getAttemptNumber()
      Specified by:
      getAttemptNumber in interface com.github.rholder.retry.Attempt<Void>
    • getDelaySinceFirstAttempt

      public long getDelaySinceFirstAttempt()
      Specified by:
      getDelaySinceFirstAttempt in interface com.github.rholder.retry.Attempt<Void>
    • get

      public Void get() throws ExecutionException
      Specified by:
      get in interface com.github.rholder.retry.Attempt<Void>
      Throws:
      ExecutionException
    • hasResult

      public boolean hasResult()
      Specified by:
      hasResult in interface com.github.rholder.retry.Attempt<Void>
    • hasException

      public boolean hasException()
      Specified by:
      hasException in interface com.github.rholder.retry.Attempt<Void>
    • getResult

      public Void getResult() throws IllegalStateException
      Specified by:
      getResult in interface com.github.rholder.retry.Attempt<Void>
      Throws:
      IllegalStateException
    • getExceptionCause

      public Throwable getExceptionCause() throws IllegalStateException
      Specified by:
      getExceptionCause in interface com.github.rholder.retry.Attempt<Void>
      Throws:
      IllegalStateException