Package jadex.bridge.component.streams
Class OutputConnectionHandler.DataSendInfo
- java.lang.Object
 - 
- jadex.bridge.component.streams.OutputConnectionHandler.DataSendInfo
 
 
- 
- Enclosing class:
 - OutputConnectionHandler
 
public class OutputConnectionHandler.DataSendInfo extends java.lang.ObjectInfo about a sent but not yet acknowledged data message. 
- 
- 
Constructor Summary
Constructors Constructor Description DataSendInfo(StreamPacket task)Create a send info. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckResend()Check, if the message should be resent.voiddoResend()Called when the message should be resent.Future<java.lang.Void>getFuture()Get the future.intgetSequenceNumber()Get the sequence number.StreamPacketretry()Retry sending the message. 
 - 
 
- 
- 
Field Detail
- 
task
protected StreamPacket task
The task. 
- 
fut
protected Future<java.lang.Void> fut
The future. 
- 
tries
protected int tries
The try count. 
- 
timer
protected java.util.TimerTask timer
The timer. 
- 
lastsend
protected long lastsend
The sequence number during the last sending. 
 - 
 
- 
Constructor Detail
- 
DataSendInfo
public DataSendInfo(StreamPacket task)
Create a send info. 
 - 
 
- 
Method Detail
- 
getSequenceNumber
public int getSequenceNumber()
Get the sequence number. 
- 
getFuture
public Future<java.lang.Void> getFuture()
Get the future. 
- 
retry
public StreamPacket retry()
Retry sending the message.- Returns:
 - task The task for resend.
 
 
- 
doResend
public void doResend()
Called when the message should be resent. 
- 
checkResend
public void checkResend()
Check, if the message should be resent. 
 - 
 
 -