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 SummaryFields 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 SummaryConstructors 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 SummaryAll 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- 
taskprotected StreamPacket task The send task.
 - 
idprotected java.lang.Object id The id.
 - 
trycntprotected int trycnt The number of timer this task has been executed.
 - 
timerprotected java.util.TimerTask timer The timer for triggering resends.
 - 
resultprotected Future<java.lang.Object> result The result future of the call.
 
- 
 - 
Constructor Detail- 
SendInfopublic 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- 
getTaskpublic StreamPacket getTask() Get the task.- Returns:
- the task.
 
 - 
setTaskpublic void setTask(StreamPacket task) Set the task.- Parameters:
- task- The task to set.
 
 - 
getIdpublic java.lang.Object getId() Get the id.- Returns:
- the id.
 
 - 
setIdpublic void setId(java.lang.Object id) Set the id.- Parameters:
- id- The id to set.
 
 - 
getTryCntpublic int getTryCnt() Get the trycnt.- Returns:
- the trycnt.
 
 - 
setTryCntpublic void setTryCnt(int trycnt) Set the trycnt.- Parameters:
- trycnt- The trycnt to set.
 
 - 
getTimerpublic java.util.TimerTask getTimer() Get the timer.- Returns:
- the timer.
 
 - 
setTimerpublic void setTimer(java.util.TimerTask timer) Set the timer.- Parameters:
- timer- The timer to set.
 
 - 
getResultpublic Future<java.lang.Object> getResult() Get the result.- Returns:
- the result.
 
 - 
setResultpublic void setResult(Future<java.lang.Object> result) Set the result.- Parameters:
- result- The result to set.
 
 
- 
 
-