Class IncomingMessageQueueImpl
java.lang.Object
com.biglybt.pifimpl.local.network.IncomingMessageQueueImpl
- All Implemented Interfaces:
IncomingMessageQueue
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedIncomingMessageQueueImpl(IncomingMessageQueue core_queue) -
Method Summary
Modifier and TypeMethodDescriptionvoidRemove registration of queue listener.int[]voidnotifyOfExternalReceive(Message message) Notifty the queue (and its listeners) of a message received externally on the queue's behalf.voidregisterListener(IncomingMessageQueueListener listener) Register queue listener.private voidregisterListenerSupport(IncomingMessageQueueListener listener, boolean is_priority) voidRegister queue listener that will get to process messages *ahead* of the core.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IncomingMessageQueue
getPercentDoneOfCurrentMessage
-
Field Details
-
core_queue
-
registrations
-
-
Constructor Details
-
IncomingMessageQueueImpl
-
-
Method Details
-
registerListener
Description copied from interface:IncomingMessageQueueRegister queue listener.- Specified by:
registerListenerin interfaceIncomingMessageQueue- Parameters:
listener- to register
-
registerPriorityListener
Description copied from interface:IncomingMessageQueueRegister queue listener that will get to process messages *ahead* of the core.- Specified by:
registerPriorityListenerin interfaceIncomingMessageQueue- Parameters:
listener-
-
registerListenerSupport
-
deregisterListener
Description copied from interface:IncomingMessageQueueRemove registration of queue listener.- Specified by:
deregisterListenerin interfaceIncomingMessageQueue- Parameters:
listener- to remove
-
notifyOfExternalReceive
Description copied from interface:IncomingMessageQueueNotifty the queue (and its listeners) of a message received externally on the queue's behalf.- Specified by:
notifyOfExternalReceivein interfaceIncomingMessageQueue- Parameters:
message- received externally- Throws:
IOException
-
getCurrentMessageProgress
public int[] getCurrentMessageProgress()- Specified by:
getCurrentMessageProgressin interfaceIncomingMessageQueue
-