Class TimestampClientExtension
java.lang.Object
org.cometd.client.ext.TimestampClientExtension
- All Implemented Interfaces:
ClientSession.Extension
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
send
(ClientSession session, Message.Mutable message) Callback method invoked every time a normal message is being sent.boolean
sendMeta
(ClientSession session, Message.Mutable message) Callback method invoked every time a meta message is being sent.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.cometd.bayeux.client.ClientSession.Extension
incoming, outgoing, rcv, rcvMeta
-
Constructor Details
-
TimestampClientExtension
public TimestampClientExtension()
-
-
Method Details
-
send
Description copied from interface:ClientSession.Extension
Callback method invoked every time a normal message is being sent.- Specified by:
send
in 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.Extension
Callback method invoked every time a meta message is being sent.- Specified by:
sendMeta
in 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
-