Interface TorWrapper.Observer

  • Enclosing interface:
    TorWrapper

    public static interface TorWrapper.Observer
    An interface for observing changes to the state of the Tor process. All calls happen on the event executor supplied to the wrapper's constructor.
    • Method Detail

      • onState

        void onState​(TorWrapper.TorState s)
        Called whenever the state of the Tor process changes.
      • onBootstrapPercentage

        void onBootstrapPercentage​(int percentage)
        Called whenever the bootstrap percentage changes.
      • onHsDescriptorUpload

        void onHsDescriptorUpload​(java.lang.String onion)
        Called whenever a hidden service descriptor is uploaded.
      • onClockSkewDetected

        void onClockSkewDetected​(long skewSeconds)
        Called whenever Tor detects that the system clock is skewed.