Class TimesyncClientExtension
java.lang.Object
org.cometd.client.ext.TimesyncClientExtension
- All Implemented Interfaces:
ClientSession.Extension
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetLag()intlongbooleanrcvMeta(ClientSession session, Message.Mutable message) Callback method invoked every time a meta message is received.booleansendMeta(ClientSession session, Message.Mutable message) Callback method invoked every time a meta message is being sent.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ClientSession.Extension
incoming, outgoing, rcv, send
-
Constructor Details
-
TimesyncClientExtension
public TimesyncClientExtension()
-
-
Method Details
-
rcvMeta
Description copied from interface:ClientSession.ExtensionCallback method invoked every time a meta message is received.- Specified by:
rcvMetain interfaceClientSession.Extension- Parameters:
session- the session object that is receiving the meta messagemessage- the meta message received- Returns:
- true if message processing should continue, false if it should stop
-
sendMeta
Description copied from interface:ClientSession.ExtensionCallback method invoked every time a meta message is being sent.- Specified by:
sendMetain interfaceClientSession.Extension- Parameters:
session- the session object that is sending the messagemessage- the meta message being sent- Returns:
- true if message processing should continue, false if it should stop
-
getOffset
public int getOffset() -
getLag
public int getLag() -
getServerTime
public long getServerTime()
-