Package org.briarproject.onionwrapper
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 TypeMethodDescriptionvoidonBootstrapPercentage(int percentage) Called whenever the bootstrap percentage changes.voidonClockSkewDetected(long skewSeconds) Called whenever Tor detects that the system clock is skewed.voidonHsDescriptorUpload(String onion) Called whenever a hidden service descriptor is uploaded.voidCalled whenever the state of the Tor process changes.
-
Method Details
-
onState
Called whenever the state of the Tor process changes. -
onBootstrapPercentage
void onBootstrapPercentage(int percentage) Called whenever the bootstrap percentage changes. -
onHsDescriptorUpload
Called whenever a hidden service descriptor is uploaded. -
onClockSkewDetected
void onClockSkewDetected(long skewSeconds) Called whenever Tor detects that the system clock is skewed.
-