public class ReplayToken extends Object implements TrackingToken, WrappedToken
| Modifier | Constructor and Description | 
|---|---|
  | 
ReplayToken(TrackingToken tokenAtReset)
Initialize a ReplayToken, using the given  
tokenAtReset to represent the position at which a reset was
 triggered. | 
protected  | 
ReplayToken(TrackingToken tokenAtReset,
           TrackingToken newRedeliveryToken)  | 
| Modifier and Type | Method and Description | 
|---|---|
TrackingToken | 
advancedTo(TrackingToken newToken)  | 
boolean | 
covers(TrackingToken other)
Indicates whether this token covers the  
other token completely. | 
boolean | 
equals(Object o)  | 
int | 
hashCode()  | 
static boolean | 
isReplay(Message<?> message)  | 
static boolean | 
isReplay(TrackingToken trackingToken)  | 
TrackingToken | 
lowerBound(TrackingToken other)
Returns a token that represents the lower bound between this and the  
other token. | 
String | 
toString()  | 
TrackingToken | 
unwrap()
Returns the token representing the current position in the stream. 
 | 
TrackingToken | 
upperBound(TrackingToken other)
Returns the token that represents the furthest possible position in a stream that either this token or the given
  
other represents. | 
public ReplayToken(TrackingToken tokenAtReset)
tokenAtReset to represent the position at which a reset was
 triggered. The current token is reset to the initial position.tokenAtReset - The token representing the position at which the reset was triggered.protected ReplayToken(TrackingToken tokenAtReset, TrackingToken newRedeliveryToken)
public static boolean isReplay(Message<?> message)
public static boolean isReplay(TrackingToken trackingToken)
public TrackingToken advancedTo(TrackingToken newToken)
public TrackingToken lowerBound(TrackingToken other)
TrackingTokenother token. Effectively, the
 returned token will cause messages not received by both this and the other token to be redelivered.lowerBound in interface TrackingTokenother - The token to compare to this onepublic TrackingToken upperBound(TrackingToken other)
TrackingTokenother represents. Effectively, this means this token will only deliver messages that neither this, nor
 the other have been received.upperBound in interface TrackingTokenother - The token to compare this token topublic boolean covers(TrackingToken other)
TrackingTokenother token completely. That means that this token represents a
 position in a stream that has received all of the messages that a stream represented by the other token
 has received.covers in interface TrackingTokenother - The token to compare to this onetrue if this token covers the other, otherwise falsepublic TrackingToken unwrap()
WrappedTokenunwrap in interface WrappedTokenCopyright © 2010–2018. All rights reserved.