public class RequestHandler extends Object implements Serializable
Constructor and Description |
---|
RequestHandler() |
Modifier and Type | Method and Description |
---|---|
Message |
getNextMessage()
Get the next message in the queue.
|
int |
numberOfWaitingMessages()
Get the number of messages waiting to be sent.
|
void |
queueMessage(Message message)
Put a new message in the corresponding queue.
|
SendResult |
sendMessage(Message message)
Send the indicated message (immediately).
|
public void queueMessage(Message message)
message
- The Message
to put in the queuepublic SendResult sendMessage(Message message)
message
- The Message
to sendSendResult
public int numberOfWaitingMessages()
public Message getNextMessage()
Message
in the queue.Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.