Class AbstractPartialMessageHandler<T>

  • Type Parameters:
    T - the type of message to handle
    All Implemented Interfaces:
    javax.websocket.MessageHandler, javax.websocket.MessageHandler.Partial<T>
    Direct Known Subclasses:
    AbstractPartialStringMessageHandler

    @Unstable
    public abstract class AbstractPartialMessageHandler<T>
    extends Object
    implements javax.websocket.MessageHandler.Partial<T>
    Base class for partial message handlers that want to handle messages when all their parts have been received.
    Since:
    13.10.5, 14.3RC1
    Version:
    $Id: 288f9ceeb4295b451e14be082393ff92c9e079a1 $
    • Constructor Detail

      • AbstractPartialMessageHandler

        public AbstractPartialMessageHandler()
    • Method Detail

      • onMessage

        public void onMessage​(T partialMessage,
                              boolean last)
        Specified by:
        onMessage in interface javax.websocket.MessageHandler.Partial<T>
      • onMessage

        public abstract void onMessage​(List<T> parts)
        Called to handle the message when all its parts have been received.
        Parameters:
        parts - the message parts