|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gudy.azureus2.pluginsimpl.local.network.OutgoingMessageQueueImpl
public class OutgoingMessageQueueImpl
Constructor Summary | |
---|---|
protected |
OutgoingMessageQueueImpl(OutgoingMessageQueue core_queue)
|
Method Summary | |
---|---|
void |
deregisterListener(OutgoingMessageQueueListener listener)
Remove registration of queue listener. |
int |
getDataQueuedBytes()
|
int |
getPercentDoneOfCurrentMessage()
|
int |
getProtocolQueuedBytes()
|
boolean |
isBlocked()
|
void |
notifyOfExternalSend(Message message)
Notifty the queue (and its listeners) of a message sent externally on the queue's behalf. |
void |
registerListener(OutgoingMessageQueueListener listener)
Register queue listener. |
void |
sendMessage(Message message)
Queue the given message for sending. |
void |
setEncoder(MessageStreamEncoder encoder)
Set the message stream encoder that will be used to encode outgoing messages. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected OutgoingMessageQueueImpl(OutgoingMessageQueue core_queue)
Method Detail |
---|
public void setEncoder(MessageStreamEncoder encoder)
OutgoingMessageQueue
setEncoder
in interface OutgoingMessageQueue
encoder
- to usepublic void sendMessage(Message message)
OutgoingMessageQueue
sendMessage
in interface OutgoingMessageQueue
message
- to sendpublic void registerListener(OutgoingMessageQueueListener listener)
OutgoingMessageQueue
registerListener
in interface OutgoingMessageQueue
listener
- to registerpublic void deregisterListener(OutgoingMessageQueueListener listener)
OutgoingMessageQueue
deregisterListener
in interface OutgoingMessageQueue
listener
- to removepublic void notifyOfExternalSend(Message message)
OutgoingMessageQueue
notifyOfExternalSend
in interface OutgoingMessageQueue
message
- sent externallypublic int getPercentDoneOfCurrentMessage()
getPercentDoneOfCurrentMessage
in interface OutgoingMessageQueue
public int getDataQueuedBytes()
getDataQueuedBytes
in interface OutgoingMessageQueue
public int getProtocolQueuedBytes()
getProtocolQueuedBytes
in interface OutgoingMessageQueue
public boolean isBlocked()
isBlocked
in interface OutgoingMessageQueue
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |