Package org.cometd.client.ext
Class TimesyncClientExtension
java.lang.Object
org.cometd.bayeux.client.ClientSession.Extension.Adapter
org.cometd.client.ext.TimesyncClientExtension
- All Implemented Interfaces:
ClientSession.Extension
public class TimesyncClientExtension extends ClientSession.Extension.Adapter
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.cometd.bayeux.client.ClientSession.Extension
ClientSession.Extension.Adapter
-
Constructor Summary
Constructors Constructor Description TimesyncClientExtension()
-
Method Summary
Modifier and Type Method 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.
-
Constructor Details
-
TimesyncClientExtension
public TimesyncClientExtension()
-
-
Method Details
-
rcvMeta
Description copied from interface:ClientSession.Extension
Callback method invoked every time a meta message is received.- Specified by:
rcvMeta
in interfaceClientSession.Extension
- Overrides:
rcvMeta
in classClientSession.Extension.Adapter
- 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.Extension
Callback method invoked every time a meta message is being sent.- Specified by:
sendMeta
in interfaceClientSession.Extension
- Overrides:
sendMeta
in classClientSession.Extension.Adapter
- 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()
-