Class ResendItem
java.lang.Object
com.helger.as2lib.processor.resender.ResendItem
This class represents a single in-memory item to be resend.
- Since:
- 2.2.0
- Author:
- Philip Helger
-
Constructor Summary
ConstructorsConstructorDescriptionResendItem
(String sResendAction, int nRetries, IMessage aMsg, long nResendDelayMS) -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
-
Constructor Details
-
ResendItem
public ResendItem(@Nonnull @Nonempty String sResendAction, @Nonnegative int nRetries, @Nonnull IMessage aMsg, @Nonnegative long nResendDelayMS)
-
-
Method Details
-
getResendAction
- Returns:
- The internal action to be taken.
-
getRetries
- Returns:
- The number of retries already performed (does not include the original try!)
-
getMessage
- Returns:
- The message to be resend
-
getEarliestResendDate
- Returns:
- The date the resend must not happen before
-
isTimeToSend
public boolean isTimeToSend()- Returns:
true
if this message can be resend now.
-