Package org.cometd.server.ext
Class TimestampExtension
java.lang.Object
org.cometd.bayeux.server.BayeuxServer.Extension.Adapter
org.cometd.server.ext.TimestampExtension
- All Implemented Interfaces:
BayeuxServer.Extension
public class TimestampExtension extends BayeuxServer.Extension.Adapter
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.cometd.bayeux.server.BayeuxServer.Extension
BayeuxServer.Extension.Adapter -
Constructor Summary
Constructors Constructor Description TimestampExtension()TimestampExtension(String format)TimestampExtension(String format, TimeZone tz) -
Method Summary
Modifier and Type Method Description booleansend(ServerSession from, ServerSession to, ServerMessage.Mutable message)Callback method invoked every time a normal message is outgoing.booleansendMeta(ServerSession to, ServerMessage.Mutable message)Callback method invoked every time a meta message is outgoing.
-
Constructor Details
-
TimestampExtension
public TimestampExtension() -
TimestampExtension
-
TimestampExtension
-
-
Method Details
-
send
Description copied from interface:BayeuxServer.ExtensionCallback method invoked every time a normal message is outgoing.
- Specified by:
sendin interfaceBayeuxServer.Extension- Overrides:
sendin classBayeuxServer.Extension.Adapter- Parameters:
from- the session that sent the message or nullto- the session the message is sent to, or null for a publish.message- the outgoing message- Returns:
- true if message processing should continue, false if it should stop
-
sendMeta
Description copied from interface:BayeuxServer.ExtensionCallback method invoked every time a meta message is outgoing.
- Specified by:
sendMetain interfaceBayeuxServer.Extension- Overrides:
sendMetain classBayeuxServer.Extension.Adapter- Parameters:
to- the session the message is sent to, or null for a publish.message- the outgoing meta message- Returns:
- true if message processing should continue, false if it should stop
-