Package jadex.bridge.component.streams
Class AbstractConnectionHandler.SendInfo
- java.lang.Object
 - 
- jadex.bridge.component.streams.AbstractConnectionHandler.SendInfo
 
 
- 
- Enclosing class:
 - AbstractConnectionHandler
 
public static class AbstractConnectionHandler.SendInfo extends java.lang.ObjectStruct class that holds send information. 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected java.lang.ObjectidThe id.protected Future<java.lang.Object>resultThe result future of the call.protected StreamPackettaskThe send task.protected java.util.TimerTasktimerThe timer for triggering resends.protected inttrycntThe number of timer this task has been executed. 
- 
Constructor Summary
Constructors Constructor Description SendInfo(StreamPacket task, java.lang.Object id, int trycnt, java.util.TimerTask timer, Future<java.lang.Object> result)Create a new send info. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetId()Get the id.Future<java.lang.Object>getResult()Get the result.StreamPacketgetTask()Get the task.java.util.TimerTaskgetTimer()Get the timer.intgetTryCnt()Get the trycnt.voidsetId(java.lang.Object id)Set the id.voidsetResult(Future<java.lang.Object> result)Set the result.voidsetTask(StreamPacket task)Set the task.voidsetTimer(java.util.TimerTask timer)Set the timer.voidsetTryCnt(int trycnt)Set the trycnt. 
 - 
 
- 
- 
Field Detail
- 
task
protected StreamPacket task
The send task. 
- 
id
protected java.lang.Object id
The id. 
- 
trycnt
protected int trycnt
The number of timer this task has been executed. 
- 
timer
protected java.util.TimerTask timer
The timer for triggering resends. 
- 
result
protected Future<java.lang.Object> result
The result future of the call. 
 - 
 
- 
Constructor Detail
- 
SendInfo
public SendInfo(StreamPacket task, java.lang.Object id, int trycnt, java.util.TimerTask timer, Future<java.lang.Object> result)
Create a new send info. 
 - 
 
- 
Method Detail
- 
getTask
public StreamPacket getTask()
Get the task.- Returns:
 - the task.
 
 
- 
setTask
public void setTask(StreamPacket task)
Set the task.- Parameters:
 task- The task to set.
 
- 
getId
public java.lang.Object getId()
Get the id.- Returns:
 - the id.
 
 
- 
setId
public void setId(java.lang.Object id)
Set the id.- Parameters:
 id- The id to set.
 
- 
getTryCnt
public int getTryCnt()
Get the trycnt.- Returns:
 - the trycnt.
 
 
- 
setTryCnt
public void setTryCnt(int trycnt)
Set the trycnt.- Parameters:
 trycnt- The trycnt to set.
 
- 
getTimer
public java.util.TimerTask getTimer()
Get the timer.- Returns:
 - the timer.
 
 
- 
setTimer
public void setTimer(java.util.TimerTask timer)
Set the timer.- Parameters:
 timer- The timer to set.
 
- 
getResult
public Future<java.lang.Object> getResult()
Get the result.- Returns:
 - the result.
 
 
- 
setResult
public void setResult(Future<java.lang.Object> result)
Set the result.- Parameters:
 result- The result to set.
 
 - 
 
 -