Class TimestampExtension
java.lang.Object
org.cometd.server.ext.TimestampExtension
- All Implemented Interfaces:
BayeuxServer.Extension
-
Constructor Summary
ConstructorDescriptionTimestampExtension
(String format) TimestampExtension
(String format, TimeZone tz) -
Method Summary
Modifier and TypeMethodDescriptionboolean
send
(ServerSession from, ServerSession to, ServerMessage.Mutable message) Blocking version ofBayeuxServer.Extension.outgoing(ServerSession, ServerSession, ServerMessage.Mutable, Promise)
for non-meta messages.boolean
sendMeta
(ServerSession to, ServerMessage.Mutable message) Blocking version ofBayeuxServer.Extension.outgoing(ServerSession, ServerSession, ServerMessage.Mutable, Promise)
for meta messages.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.server.BayeuxServer.Extension
incoming, outgoing, rcv, rcvMeta
-
Constructor Details
-
TimestampExtension
public TimestampExtension() -
TimestampExtension
-
TimestampExtension
-
-
Method Details
-
send
Description copied from interface:BayeuxServer.Extension
Blocking version of
BayeuxServer.Extension.outgoing(ServerSession, ServerSession, ServerMessage.Mutable, Promise)
for non-meta messages.- Specified by:
send
in 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.Extension
Blocking version of
BayeuxServer.Extension.outgoing(ServerSession, ServerSession, ServerMessage.Mutable, Promise)
for meta messages.- Specified by:
sendMeta
in 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
-