Package net.openosrs.api.service.delay
Class SessionTickClock
- java.lang.Object
-
- net.openosrs.api.service.delay.SessionTickClock
-
@Singleton public final class SessionTickClock extends java.lang.ObjectOne client-thread clock shared by delays; tick wrap advances time, reset starts a new epoch.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSessionTickClock.Snapshot
-
Constructor Summary
Constructors Constructor Description SessionTickClock(net.runelite.api.Client client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetSessionEpoch()Safe off-thread identity read; tick sampling still belongs to the client thread.voidinvalidateSession()Called on logout/hop/connection loss even if no plugin polls a delay then.SessionTickClock.Snapshotsample()
-
-
-
Method Detail
-
getSessionEpoch
public long getSessionEpoch()
Safe off-thread identity read; tick sampling still belongs to the client thread.
-
sample
public SessionTickClock.Snapshot sample()
-
invalidateSession
public void invalidateSession()
Called on logout/hop/connection loss even if no plugin polls a delay then.
-
-