Class TimestampExtension
java.lang.Object
org.cometd.server.ext.TimestampExtension
- All Implemented Interfaces:
BayeuxServer.Extension
-
Constructor Summary
ConstructorsConstructorDescriptionTimestampExtension(String format) TimestampExtension(String format, TimeZone tz) -
Method Summary
Modifier and TypeMethodDescriptionbooleansend(ServerSession from, ServerSession to, ServerMessage.Mutable message) Blocking version ofBayeuxServer.Extension.outgoing(ServerSession, ServerSession, ServerMessage.Mutable, Promise)for non-meta messages.booleansendMeta(ServerSession to, ServerMessage.Mutable message) Blocking version ofBayeuxServer.Extension.outgoing(ServerSession, ServerSession, ServerMessage.Mutable, Promise)for meta messages.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BayeuxServer.Extension
incoming, outgoing, rcv, rcvMeta
-
Constructor Details
-
TimestampExtension
public TimestampExtension() -
TimestampExtension
-
TimestampExtension
-
-
Method Details
-
send
Description copied from interface:BayeuxServer.ExtensionBlocking version of
BayeuxServer.Extension.outgoing(ServerSession, ServerSession, ServerMessage.Mutable, Promise)for non-meta messages.- Specified by:
sendin interfaceBayeuxServer.Extension- 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:
- whether message processing should continue
-
sendMeta
Description copied from interface:BayeuxServer.ExtensionBlocking version of
BayeuxServer.Extension.outgoing(ServerSession, ServerSession, ServerMessage.Mutable, Promise)for meta messages.- Specified by:
sendMetain interfaceBayeuxServer.Extension- Parameters:
to- the session the message is sent to, or null for a publish.message- the outgoing message- Returns:
- whether message processing should continue
-