Class OutgoingMessageQueueImpl
java.lang.Object
com.biglybt.pifimpl.local.network.OutgoingMessageQueueImpl
- All Implemented Interfaces:
OutgoingMessageQueue
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOutgoingMessageQueueImpl(OutgoingMessageQueue core_queue) -
Method Summary
Modifier and TypeMethodDescriptionvoidRemove registration of queue listener.int[]intintbooleanvoidnotifyOfExternalSend(Message message) Notifty the queue (and its listeners) of a message sent externally on the queue's behalf.voidregisterListener(OutgoingMessageQueueListener listener) Register queue listener.voidsendMessage(Message message) Queue the given message for sending.voidsetEncoder(MessageStreamEncoder encoder) Set the message stream encoder that will be used to encode outgoing messages.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface OutgoingMessageQueue
getPercentDoneOfCurrentMessage
-
Field Details
-
core_queue
-
registrations
-
-
Constructor Details
-
OutgoingMessageQueueImpl
-
-
Method Details
-
setEncoder
Description copied from interface:OutgoingMessageQueueSet the message stream encoder that will be used to encode outgoing messages.- Specified by:
setEncoderin interfaceOutgoingMessageQueue- Parameters:
encoder- to use
-
sendMessage
Description copied from interface:OutgoingMessageQueueQueue the given message for sending.- Specified by:
sendMessagein interfaceOutgoingMessageQueue- Parameters:
message- to send
-
registerListener
Description copied from interface:OutgoingMessageQueueRegister queue listener.- Specified by:
registerListenerin interfaceOutgoingMessageQueue- Parameters:
listener- to register
-
deregisterListener
Description copied from interface:OutgoingMessageQueueRemove registration of queue listener.- Specified by:
deregisterListenerin interfaceOutgoingMessageQueue- Parameters:
listener- to remove
-
notifyOfExternalSend
Description copied from interface:OutgoingMessageQueueNotifty the queue (and its listeners) of a message sent externally on the queue's behalf.- Specified by:
notifyOfExternalSendin interfaceOutgoingMessageQueue- Parameters:
message- sent externally
-
getCurrentMessageProgress
public int[] getCurrentMessageProgress()- Specified by:
getCurrentMessageProgressin interfaceOutgoingMessageQueue
-
getDataQueuedBytes
public int getDataQueuedBytes()- Specified by:
getDataQueuedBytesin interfaceOutgoingMessageQueue
-
getProtocolQueuedBytes
public int getProtocolQueuedBytes()- Specified by:
getProtocolQueuedBytesin interfaceOutgoingMessageQueue
-
isBlocked
public boolean isBlocked()- Specified by:
isBlockedin interfaceOutgoingMessageQueue
-