ServiceFactory
An instance of TorRuntime that produces Lifecycle.DestroyableTorRuntime under the hood which are intended to be run within a service object.
NOTE: This and its subclasses are currently marked as ExperimentalKmpTorApi. Things may change (as the annotation states), so use at your own risk! Prefer using the stable implementation via the kmp-tor:runtime-service
dependency.
See also
Types
Helper for service objects to bind to the ServiceFactory by creating an instance of Lifecycle.DestroyableTorRuntime.
Single use class for initializing ServiceFactory. Multiples uses will result in IllegalStateException as the ServiceFactory implementation is held as a singleton for the given Environment that it belongs to.
Helper for loading the implementation of ServiceFactory.
Properties
Returns the first and last 4 characters of the fid concatenated together with an ellipses between.
Functions
Enqueues the Action for execution.
Returns the current Environment for this TorRuntime instance.
Checks if the tor process backing TorRuntime (if it is running) has completed starting up.
Returns the current TorListeners of this TorRuntime instance.
Subscribes with provided TorRuntime a CMD observer which will intercept execution of all TorCmd.Signal.NewNym jobs in order to transform tor's generic server response of Reply.Success.OK.
Called when Action.StartDaemon or Action.RestartDaemon has been enqueued and an instance of Lifecycle.DestroyableTorRuntime does not currently exist for this ServiceFactory.
Returns the current TorState of this TorRuntime instance.
Add a single Observer.
Add multiple Observer.
Helper for overriding a class's toString function.
Remove a single Observer.
Remove multiple Observer.