Class SessionTickClock


  • @Singleton
    public final class SessionTickClock
    extends java.lang.Object
    One client-thread clock shared by delays; tick wrap advances time, reset starts a new epoch.
    • Constructor Summary

      Constructors 
      Constructor Description
      SessionTickClock​(net.runelite.api.Client client)  
    • Constructor Detail

      • SessionTickClock

        @Inject
        public SessionTickClock​(net.runelite.api.Client client)
    • Method Detail

      • getSessionEpoch

        public long getSessionEpoch()
        Safe off-thread identity read; tick sampling still belongs to the client thread.
      • invalidateSession

        public void invalidateSession()
        Called on logout/hop/connection loss even if no plugin polls a delay then.