Package com.biglybt.pif.network
Interface IncomingMessageQueue
- All Known Implementing Classes:
IncomingMessageQueueImpl
public interface IncomingMessageQueue
Inbound message queue.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Remove registration of queue listener.int[]
default int
void
notifyOfExternalReceive
(Message message) Notifty the queue (and its listeners) of a message received externally on the queue's behalf.void
registerListener
(IncomingMessageQueueListener listener) Register queue listener.void
Register queue listener that will get to process messages *ahead* of the core.
-
Method Details
-
registerListener
Register queue listener.- Parameters:
listener
- to register
-
registerPriorityListener
Register queue listener that will get to process messages *ahead* of the core.- Parameters:
listener
-
-
deregisterListener
Remove registration of queue listener.- Parameters:
listener
- to remove
-
notifyOfExternalReceive
Notifty the queue (and its listeners) of a message received externally on the queue's behalf.- Parameters:
message
- received externally- Throws:
IOException
-
getPercentDoneOfCurrentMessage
default int getPercentDoneOfCurrentMessage() -
getCurrentMessageProgress
int[] getCurrentMessageProgress()
-