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 Summary

    Modifier and Type
    Method
    Description
    void
    onBootstrapPercentage(int percentage)
    Called whenever the bootstrap percentage changes.
    void
    onClockSkewDetected(long skewSeconds)
    Called whenever Tor detects that the system clock is skewed.
    void
    Called whenever a hidden service descriptor is uploaded.
    void
    Called whenever the state of the Tor process changes.
  • Method Details

    • 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(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.