javax.websocket
Interface MessageHandler.Async<T>
- All Superinterfaces:
- MessageHandler
- Enclosing interface:
- MessageHandler
public static interface MessageHandler.Async<T>
- extends MessageHandler
This kind of listener listens is notified by the container as parts of a message arrive. The allowable types for T
are String, ByteBuffer and byte[].
- Since:
- DRAFT 002
|
Method Summary |
void |
onMessage(T partialMessage,
boolean last)
Called when the next part of a message has been fully received. |
onMessage
void onMessage(T partialMessage,
boolean last)
- Called when the next part of a message has been fully received.
- Parameters:
partialMessage - the partial message data.last - flag to indicate if this partialMessage is the last of the whole message being delivered.
Copyright © 2012 Oracle and/or its affiliates. All rights reserved.