public interface ServerImplementation
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the connection to the server.
|
void |
listen(String queue,
com.google.common.base.Function<byte[],Boolean> action)
Starts listening to the given queue.
|
void |
publish(String queueName,
byte[] message)
Publishes a message to the given queue.
|
void publish(String queueName, byte[] message) throws QueueException
queueName - The queue to push the message to.message - The message to be pushed.QueueException - Any issues sending this message.void listen(String queue, com.google.common.base.Function<byte[],Boolean> action) throws QueueException
queue - The queue to listen to.action - The event handler.QueueException - Any issues registering this event handler.void close()
Copyright © 2016. All rights reserved.