Class ResendItem

java.lang.Object
com.helger.as2lib.processor.resender.ResendItem

@Immutable public class ResendItem extends Object
This class represents a single in-memory item to be resend.
Since:
2.2.0
Author:
Philip Helger
  • Constructor Details

  • Method Details

    • getResendAction

      @Nonnull @Nonempty public String getResendAction()
      Returns:
      The internal action to be taken.
    • getRetries

      @Nonnegative public int getRetries()
      Returns:
      The number of retries already performed (does not include the original try!)
    • getMessage

      @Nonnull public IMessage getMessage()
      Returns:
      The message to be resend
    • getEarliestResendDate

      @Nonnull public LocalDateTime getEarliestResendDate()
      Returns:
      The date the resend must not happen before
    • isTimeToSend

      public boolean isTimeToSend()
      Returns:
      true if this message can be resend now.