javax.net.websocket
Interface MessageHandler.AsyncBinary
- All Superinterfaces:
- MessageHandler
- Enclosing interface:
- MessageHandler
public static interface MessageHandler.AsyncBinary
- extends MessageHandler
This kind of handler is called to process for binary messages which may arrive in multiple parts. A single binary
message may consist of 0 to n calls to this method where @param last is false followed by a single call with @param last set to
true. Messages do not interleave and the parts arrive in order.
|
Method Summary |
void |
onMessagePart(ByteBuffer part,
boolean last)
Called when part of a binary message has been received. |
onMessagePart
void onMessagePart(ByteBuffer part,
boolean last)
- Called when part of a binary message has been received.
- Parameters:
part - The fragment of the message received.last - Whether or not this is last in the sequence of parts of the message.
Copyright © 2012. All Rights Reserved.