|
JML | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.jqql.ResendTrigger<T>
public class ResendTrigger<T>
| Constructor Summary | |
|---|---|
ResendTrigger(QQClient client)
|
|
| Method Summary | |
|---|---|
void |
add(OutPacket packet,
String name)
add a package to timeout queue 添加一个包到超时队列 |
T |
call()
|
void |
clear()
clear the queue which wanna resend 清空重发队列 |
OutPacket |
get()
get the frist package in the timeout queue and do not delete from queue 得到超时队列的第一个包,不把它从队列中删除 |
OutPacket |
remove()
get the frist package in the timeout queue and delete it from queue 得到超时队列的第一个包,并把它从队列中删除 |
void |
remove(InPacket ack)
delete the package which is mapping ack 删除ack对应的请求包 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResendTrigger(QQClient client)
| Method Detail |
|---|
public void add(OutPacket packet,
String name)
packet - send package object
发送包对象name - port name
port名称public void clear()
public OutPacket get()
public OutPacket remove()
public void remove(InPacket ack)
ack -
public T call()
throws Exception
call in interface Callable<T>Exception
|
JML | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||