public class TimesyncClientExtension extends Object implements ClientSession.Extension
Constructor and Description |
---|
TimesyncClientExtension() |
Modifier and Type | Method and Description |
---|---|
int |
getLag() |
int |
getOffset() |
long |
getServerTime() |
boolean |
rcvMeta(ClientSession session,
Message.Mutable message)
Callback method invoked every time a meta message is received.
|
boolean |
sendMeta(ClientSession session,
Message.Mutable message)
Callback method invoked every time a meta message is being sent.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
incoming, outgoing, rcv, send
public boolean rcvMeta(ClientSession session, Message.Mutable message)
ClientSession.Extension
rcvMeta
in interface ClientSession.Extension
session
- the session object that is receiving the meta messagemessage
- the meta message receivedpublic boolean sendMeta(ClientSession session, Message.Mutable message)
ClientSession.Extension
sendMeta
in interface ClientSession.Extension
session
- the session object that is sending the messagemessage
- the meta message being sentpublic int getOffset()
public int getLag()
public long getServerTime()
Copyright © 2008–2024 The CometD Project. All rights reserved.