|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.message.common.MessageReceiverCredit
public final class MessageReceiverCredit
counts message send/receive credit. It is assumed that the methods are called in a thread safe manner
Constructor Summary | |
---|---|
MessageReceiverCredit()
|
Method Summary | |
---|---|
long |
getClientSequence()
Returns the current client sequence. |
int |
getCredit()
Returns the credit to fill the prefetch queue |
long |
getCreditAvailable()
Returns the current credit available from the endpoint's perspective. |
long |
getEndpointSequence()
Returns the current endpoint sequence. |
int |
getPrefetch()
|
long |
getQueueSize()
Returns the current queue size, received but unprocessed |
boolean |
isFlowRequired()
Heuristic for sending the flow update. |
void |
receiveClient()
Receive at the client |
long |
receiveEndpoint()
Receive at the endpoint |
void |
setPrefetch(int prefetch)
|
void |
updateCredit(int credit)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MessageReceiverCredit()
Method Detail |
---|
public final int getPrefetch()
public final void setPrefetch(int prefetch)
public final long getEndpointSequence()
public final long receiveEndpoint()
public final long getClientSequence()
public final void receiveClient()
public final long getCreditAvailable()
public final long getQueueSize()
public final int getCredit()
public final boolean isFlowRequired()
public final void updateCredit(int credit)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |