Interface IRetryingRequestResolver

All Superinterfaces:
IQueuedRequestResolver<IRetryable>, IRequester, IRequestResolver<IRetryable>, ITickable
All Known Implementing Classes:
StandardRetryingRequestResolver

public interface IRetryingRequestResolver extends IQueuedRequestResolver<IRetryable>, ITickable
  • Method Details

    • updateManager

      void updateManager(IRequestManager manager)
      Update the associated manager data that links this resolver to a manager.
      Parameters:
      manager - the new associated manager.
    • getMaximalTries

      int getMaximalTries()
      Method to get the maximal amount of tries that is resolver attempts.
      Returns:
      The maximal amount of tries.
    • getMaximalDelayBetweenRetriesInTicks

      int getMaximalDelayBetweenRetriesInTicks()
      Method to get the maximal ticks between retries.
      Returns:
      The maximal amount of ticks between retries.
    • getCurrentReassignmentAttempt

      int getCurrentReassignmentAttempt()
      The current attempt to be reassigned.
      Returns:
      The current attempt of reassignment. -1 if none is undertaken.
    • isReassigning

      default boolean isReassigning()
      Method to get an indication of reassignment.
      Returns:
      an indication of reassignment.
    • getCurrentlyBeingReassignedRequest

      @Nullable @Nullable IToken<?> getCurrentlyBeingReassignedRequest()
      Method to get the token of the request that is currently being reassigned
      Returns:
      The token of the quest that is being reassigned, null if no reassignment is being performed.