Package org.briarproject.onionwrapper
Interface TorWrapper.Observer
-
- Enclosing interface:
- TorWrapper
public static interface TorWrapper.ObserverAn interface for observing changes to thestateof the Tor process. All calls happen on the event executor supplied to the wrapper's constructor.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonBootstrapPercentage(int percentage)Called whenever the bootstrap percentage changes.voidonClockSkewDetected(long skewSeconds)Called whenever Tor detects that the system clock is skewed.voidonHsDescriptorUpload(java.lang.String onion)Called whenever a hidden service descriptor is uploaded.voidonState(TorWrapper.TorState s)Called whenever the state of the Tor process changes.
-
-
-
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.
-
-