public class TimestampExtension extends Object implements BayeuxServer.Extension
Constructor and Description |
---|
TimestampExtension() |
TimestampExtension(String format) |
TimestampExtension(String format,
TimeZone tz) |
Modifier and Type | Method and Description |
---|---|
boolean |
send(ServerSession from,
ServerSession to,
ServerMessage.Mutable message)
Blocking version of
BayeuxServer.Extension.outgoing(ServerSession, ServerSession, ServerMessage.Mutable, Promise)
for non-meta messages. |
boolean |
sendMeta(ServerSession to,
ServerMessage.Mutable message)
Blocking version of
BayeuxServer.Extension.outgoing(ServerSession, ServerSession, ServerMessage.Mutable, Promise)
for meta messages. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
incoming, outgoing, rcv, rcvMeta
public TimestampExtension()
public TimestampExtension(String format)
public boolean send(ServerSession from, ServerSession to, ServerMessage.Mutable message)
BayeuxServer.Extension
Blocking version of BayeuxServer.Extension.outgoing(ServerSession, ServerSession, ServerMessage.Mutable, Promise)
for non-meta messages.
send
in interface BayeuxServer.Extension
from
- the session that sent the message or nullto
- the session the message is sent to, or null for a publish.message
- the outgoing messagepublic boolean sendMeta(ServerSession to, ServerMessage.Mutable message)
BayeuxServer.Extension
Blocking version of BayeuxServer.Extension.outgoing(ServerSession, ServerSession, ServerMessage.Mutable, Promise)
for meta messages.
sendMeta
in interface BayeuxServer.Extension
to
- the session the message is sent to, or null for a publish.message
- the outgoing messageCopyright © 2008–2024 The CometD Project. All rights reserved.