Class ClientSession.Extension.Adapter

java.lang.Object
org.cometd.bayeux.client.ClientSession.Extension.Adapter
All Implemented Interfaces:
ClientSession.Extension
Direct Known Subclasses:
AckExtension, BinaryExtension, TimestampClientExtension, TimesyncClientExtension
Enclosing interface:
ClientSession.Extension

public static class ClientSession.Extension.Adapter
extends Object
implements ClientSession.Extension
Empty implementation of ClientSession.Extension.
  • Constructor Details

  • Method Details

    • rcv

      public boolean rcv​(ClientSession session, Message.Mutable message)
      Description copied from interface: ClientSession.Extension
      Callback method invoked every time a normal message is received.
      Specified by:
      rcv in interface ClientSession.Extension
      Parameters:
      session - the session object that is receiving the message
      message - the message received
      Returns:
      true if message processing should continue, false if it should stop
    • rcvMeta

      public boolean rcvMeta​(ClientSession session, Message.Mutable message)
      Description copied from interface: ClientSession.Extension
      Callback method invoked every time a meta message is received.
      Specified by:
      rcvMeta in interface ClientSession.Extension
      Parameters:
      session - the session object that is receiving the meta message
      message - the meta message received
      Returns:
      true if message processing should continue, false if it should stop
    • send

      public boolean send​(ClientSession session, Message.Mutable message)
      Description copied from interface: ClientSession.Extension
      Callback method invoked every time a normal message is being sent.
      Specified by:
      send in interface ClientSession.Extension
      Parameters:
      session - the session object that is sending the message
      message - the message being sent
      Returns:
      true if message processing should continue, false if it should stop
    • sendMeta

      public boolean sendMeta​(ClientSession session, Message.Mutable message)
      Description copied from interface: ClientSession.Extension
      Callback method invoked every time a meta message is being sent.
      Specified by:
      sendMeta in interface ClientSession.Extension
      Parameters:
      session - the session object that is sending the message
      message - the meta message being sent
      Returns:
      true if message processing should continue, false if it should stop