Class OnMessageBinaryCallable


  • public class OnMessageBinaryCallable
    extends OnMessageCallable
    Callable for OnMessage annotated methods with a whole or partial binary messages.

    Not for use with InputStream based OnMessage method objects.

    See Also:
    Decoder.Binary
    • Constructor Detail

      • OnMessageBinaryCallable

        public OnMessageBinaryCallable​(java.lang.Class<?> pojo,
                                       java.lang.reflect.Method method)
      • OnMessageBinaryCallable

        public OnMessageBinaryCallable​(OnMessageCallable copy)
        Copy Constructor
        Parameters:
        copy - the callable to copy
    • Method Detail

      • call

        public java.lang.Object call​(java.lang.Object endpoint,
                                     java.nio.ByteBuffer buf,
                                     boolean partialFlag)
                              throws javax.websocket.DecodeException
        Throws:
        javax.websocket.DecodeException