public static class AbstractConnectionHandler.SendInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
id
The id.
|
protected Future<java.lang.Object> |
result
The result future of the call.
|
protected StreamPacket |
task
The send task.
|
protected java.util.TimerTask |
timer
The timer for triggering resends.
|
protected int |
trycnt
The number of timer this task has been executed.
|
Constructor and Description |
---|
SendInfo(StreamPacket task,
java.lang.Object id,
int trycnt,
java.util.TimerTask timer,
Future<java.lang.Object> result)
Create a new send info.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getId()
Get the id.
|
Future<java.lang.Object> |
getResult()
Get the result.
|
StreamPacket |
getTask()
Get the task.
|
java.util.TimerTask |
getTimer()
Get the timer.
|
int |
getTryCnt()
Get the trycnt.
|
void |
setId(java.lang.Object id)
Set the id.
|
void |
setResult(Future<java.lang.Object> result)
Set the result.
|
void |
setTask(StreamPacket task)
Set the task.
|
void |
setTimer(java.util.TimerTask timer)
Set the timer.
|
void |
setTryCnt(int trycnt)
Set the trycnt.
|
protected StreamPacket task
protected java.lang.Object id
protected int trycnt
protected java.util.TimerTask timer
protected Future<java.lang.Object> result
public SendInfo(StreamPacket task, java.lang.Object id, int trycnt, java.util.TimerTask timer, Future<java.lang.Object> result)
public StreamPacket getTask()
public void setTask(StreamPacket task)
task
- The task to set.public java.lang.Object getId()
public void setId(java.lang.Object id)
id
- The id to set.public int getTryCnt()
public void setTryCnt(int trycnt)
trycnt
- The trycnt to set.public java.util.TimerTask getTimer()
public void setTimer(java.util.TimerTask timer)
timer
- The timer to set.public Future<java.lang.Object> getResult()
public void setResult(Future<java.lang.Object> result)
result
- The result to set.