ServiceInstaller class

Extend this class or implement this interface in your worker service if it needs to take action when the worker thread is started or stopped.

Constructors

ServiceInstaller()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

install() FutureOr<void>
Squadron will call this method as part of the worker thread initialization. It will be called just after the service instance has been constructed. The future returned by Worker.start will not complete before this method completes whether synchronously or asynchronously. If this method throws, the future returned by Worker.start will complete with an error and the service will not be available.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
uninstall() FutureOr<void>
Squadron will call this method as part of the worker thread shutdown process. It will be called just before effectively closing the platform channel. If this method throws, the exception will not bubble up to the parent thread. Also, Worker.stop does not wait for this method to complete.

Operators

operator ==(Object other) bool
The equality operator.
inherited