|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.gudy.azureus2.pluginsimpl.local.peers.PeerForeignNetworkConnection.omq
protected class PeerForeignNetworkConnection.omq
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.aelitis.azureus.core.networkmanager.OutgoingMessageQueue |
|---|
OutgoingMessageQueue.MessageQueueListener |
| Constructor Summary | |
|---|---|
protected |
PeerForeignNetworkConnection.omq()
|
| Method Summary | |
|---|---|
void |
addMessage(Message message,
boolean manual_listener_notify)
Add a message to the message queue. |
void |
cancelQueueListener(OutgoingMessageQueue.MessageQueueListener listener)
Cancel queue event notification listener. |
int[] |
deliverToTransport(int max_bytes,
boolean protocol_is_free,
boolean manual_listener_notify)
Deliver (write) message(s) data to the underlying transport. |
void |
destroy()
Destroy this queue; i.e. |
void |
doListenerNotifications()
Manually send any unsent listener notifications. |
void |
flush()
Force all pending messages to be delivered |
int |
getDataQueuedBytes()
|
MessageStreamEncoder |
getEncoder()
|
int |
getMssSize()
|
int |
getPercentDoneOfCurrentMessage()
Get the percentage of the current message that has already been sent out. |
boolean |
getPriorityBoost()
|
int |
getProtocolQueuedBytes()
|
java.lang.String |
getQueueTrace()
|
int |
getTotalSize()
Get the total number of bytes ready to be transported. |
boolean |
hasUrgentMessage()
Whether or not an urgent message (one that needs an immediate send, i.e. |
boolean |
isBlocked()
|
boolean |
isDestroyed()
|
void |
notifyOfExternallySentMessage(Message message)
Notifty the queue (and its listeners) of a message sent externally on the queue's behalf. |
Message |
peekFirstMessage()
|
void |
registerQueueListener(OutgoingMessageQueue.MessageQueueListener listener)
Add a listener to be notified of queue events. |
boolean |
removeMessage(Message message,
boolean manual_listener_notify)
Remove a particular message from the queue. |
void |
removeMessagesOfType(Message[] message_types,
boolean manual_listener_notify)
Remove all messages of the given types from the queue. |
void |
setEncoder(MessageStreamEncoder stream_encoder)
Set the message stream encoder that will be used to encode outgoing messages. |
void |
setPriorityBoost(boolean boost)
|
void |
setTrace(boolean on)
|
void |
setTransport(Transport _transport)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected PeerForeignNetworkConnection.omq()
| Method Detail |
|---|
public void setTransport(Transport _transport)
setTransport in interface OutgoingMessageQueuepublic int getMssSize()
getMssSize in interface OutgoingMessageQueuepublic void setEncoder(MessageStreamEncoder stream_encoder)
OutgoingMessageQueue
setEncoder in interface OutgoingMessageQueuestream_encoder - to usepublic MessageStreamEncoder getEncoder()
getEncoder in interface OutgoingMessageQueuepublic int getPercentDoneOfCurrentMessage()
OutgoingMessageQueue
getPercentDoneOfCurrentMessage in interface OutgoingMessageQueuepublic void destroy()
OutgoingMessageQueue
destroy in interface OutgoingMessageQueuepublic void flush()
OutgoingMessageQueue
flush in interface OutgoingMessageQueuepublic boolean isDestroyed()
isDestroyed in interface OutgoingMessageQueuepublic int getTotalSize()
OutgoingMessageQueue
getTotalSize in interface OutgoingMessageQueuepublic int getDataQueuedBytes()
getDataQueuedBytes in interface OutgoingMessageQueuepublic int getProtocolQueuedBytes()
getProtocolQueuedBytes in interface OutgoingMessageQueuepublic boolean getPriorityBoost()
getPriorityBoost in interface OutgoingMessageQueuepublic void setPriorityBoost(boolean boost)
setPriorityBoost in interface OutgoingMessageQueuepublic boolean isBlocked()
isBlocked in interface OutgoingMessageQueuepublic boolean hasUrgentMessage()
OutgoingMessageQueue
hasUrgentMessage in interface OutgoingMessageQueuepublic Message peekFirstMessage()
peekFirstMessage in interface OutgoingMessageQueue
public void addMessage(Message message,
boolean manual_listener_notify)
OutgoingMessageQueue
addMessage in interface OutgoingMessageQueuemessage - message to addmanual_listener_notify - true for manual notification, false for automatic
public void removeMessagesOfType(Message[] message_types,
boolean manual_listener_notify)
OutgoingMessageQueue
removeMessagesOfType in interface OutgoingMessageQueuemessage_types - type to removemanual_listener_notify - true for manual notification, false for automatic
public boolean removeMessage(Message message,
boolean manual_listener_notify)
OutgoingMessageQueue
removeMessage in interface OutgoingMessageQueuemessage - to removemanual_listener_notify - true for manual notification, false for automatic
public int[] deliverToTransport(int max_bytes,
boolean protocol_is_free,
boolean manual_listener_notify)
throws java.io.IOException
OutgoingMessageQueue
deliverToTransport in interface OutgoingMessageQueuemax_bytes - maximum number of bytes to delivermanual_listener_notify - true for manual notification, false for automatic
java.io.IOException - on delivery errorpublic void doListenerNotifications()
OutgoingMessageQueue
doListenerNotifications in interface OutgoingMessageQueuepublic void setTrace(boolean on)
setTrace in interface OutgoingMessageQueuepublic java.lang.String getQueueTrace()
getQueueTrace in interface OutgoingMessageQueuepublic void registerQueueListener(OutgoingMessageQueue.MessageQueueListener listener)
OutgoingMessageQueue
registerQueueListener in interface OutgoingMessageQueuepublic void cancelQueueListener(OutgoingMessageQueue.MessageQueueListener listener)
OutgoingMessageQueue
cancelQueueListener in interface OutgoingMessageQueuepublic void notifyOfExternallySentMessage(Message message)
OutgoingMessageQueue
notifyOfExternallySentMessage in interface OutgoingMessageQueuemessage - sent externally
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||