|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.errai.bus.server.io.BufferDeliveryHandler
public class BufferDeliveryHandler
This implementation of MessageDeliveryHandler
facilitates the buffering of all inbound message
traffic to a singular ring-buffer.
Method Summary | |
---|---|
void |
clean(MessageQueue queue)
|
boolean |
copyFromBuffer(MessageQueue queue,
ByteWriteAdapter toAdapter)
|
boolean |
copyFromBuffer(TimeUnit timeUnit,
int timeout,
MessageQueue queue,
ByteWriteAdapter toAdapter)
|
boolean |
deliver(MessageQueue queue,
Message message)
This method is responsible for delivering a message into the transport layer. |
static BufferDeliveryHandler |
getInstance()
|
void |
noop(MessageQueue queue)
Sends a NOOP (No-Operation) to the remote connected |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static BufferDeliveryHandler getInstance()
public boolean deliver(MessageQueue queue, Message message) throws IOException
MessageDeliveryHandler
deliver
in interface MessageDeliveryHandler
queue
- the MessageQueue
to deliver from.message
- the Message
to deliver.
IOException
- an IOException may be thrown if there is a problem interacting with the underlying transport.public void noop(MessageQueue queue) throws IOException
MessageDeliveryHandler
noop
in interface MessageDeliveryHandler
IOException
public void clean(MessageQueue queue)
clean
in interface Cleanable
public boolean copyFromBuffer(MessageQueue queue, ByteWriteAdapter toAdapter) throws IOException
copyFromBuffer
in interface Buffered
IOException
public boolean copyFromBuffer(TimeUnit timeUnit, int timeout, MessageQueue queue, ByteWriteAdapter toAdapter) throws IOException
copyFromBuffer
in interface Buffered
IOException
|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |