public class ExceptionIfDroppedReplayStrategy extends java.lang.Object implements ReplayStrategy
| Constructor and Description |
|---|
ExceptionIfDroppedReplayStrategy() |
ExceptionIfDroppedReplayStrategy(int maximumDifference) |
| Modifier and Type | Method and Description |
|---|---|
int |
getMaximumDifference() |
boolean |
onDroppedPackets(ReliableTransport transport,
int expectedCounter,
int actualCounter,
int nextAvailableCounter)
Deals with a dropped packet.
|
void |
onReceivedPacket(ReliableTransport transport,
long expectedCounter) |
void |
setMaximumDifference(int maximumDifference)
Sets the maximum allowed difference between an expected packet and an
actual packet before an error occurs
|
public ExceptionIfDroppedReplayStrategy()
public ExceptionIfDroppedReplayStrategy(int maximumDifference)
public boolean onDroppedPackets(ReliableTransport transport, int expectedCounter, int actualCounter, int nextAvailableCounter) throws java.io.IOException
ReplayStrategyonDroppedPackets in interface ReplayStrategytransport - the transport on which the packet was droppedexpectedCounter - the expected command counteractualCounter - the actual command counternextAvailableCounter - TODOjava.io.IOExceptionpublic void onReceivedPacket(ReliableTransport transport, long expectedCounter)
onReceivedPacket in interface ReplayStrategypublic int getMaximumDifference()
public void setMaximumDifference(int maximumDifference)
Copyright © 2005-2014 Red Hat, Inc.. All Rights Reserved.