Package org.cometd.bayeux.client
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.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.cometd.bayeux.client.ClientSession.Extension
ClientSession.Extension.Adapter -
Constructor Summary
Constructors Constructor Description Adapter() -
Method Summary
Modifier and Type Method Description booleanrcv(ClientSession session, Message.Mutable message)Callback method invoked every time a normal message is received.booleanrcvMeta(ClientSession session, Message.Mutable message)Callback method invoked every time a meta message is received.booleansend(ClientSession session, Message.Mutable message)Callback method invoked every time a normal message is being sent.booleansendMeta(ClientSession session, Message.Mutable message)Callback method invoked every time a meta message is being sent.
-
Constructor Details
-
Adapter
public Adapter()
-
-
Method Details
-
rcv
Description copied from interface:ClientSession.ExtensionCallback method invoked every time a normal message is received.- Specified by:
rcvin interfaceClientSession.Extension- Parameters:
session- the session object that is receiving the messagemessage- the message received- Returns:
- true if message processing should continue, false if it should stop
-
rcvMeta
Description copied from interface:ClientSession.ExtensionCallback method invoked every time a meta message is received.- Specified by:
rcvMetain interfaceClientSession.Extension- Parameters:
session- the session object that is receiving the meta messagemessage- the meta message received- Returns:
- true if message processing should continue, false if it should stop
-
send
Description copied from interface:ClientSession.ExtensionCallback method invoked every time a normal message is being sent.- Specified by:
sendin interfaceClientSession.Extension- Parameters:
session- the session object that is sending the messagemessage- the message being sent- Returns:
- true if message processing should continue, false if it should stop
-
sendMeta
Description copied from interface:ClientSession.ExtensionCallback method invoked every time a meta message is being sent.- Specified by:
sendMetain interfaceClientSession.Extension- Parameters:
session- the session object that is sending the messagemessage- the meta message being sent- Returns:
- true if message processing should continue, false if it should stop
-