Object -
lang.object
:
Listener
Represents the shape expected from all listeners.
Methods
Handle service attachment to the listener.
Handle service detachment from the listener.
Handle listener start.
Handle listener graceful stop.
Handle listener immediate stop.
Handle service attachment to the listener.
Parameters
- s service
-
the service to attach
- name string? (default ())
-
optionally a name associated with the service
-
Return Type
(error?) ()
if no error occurred, and an error otherwise
Handle service detachment from the listener.
Parameters
- s service
-
the service to detach
-
Return Type
(error?) ()
if no error occurred, and an error otherwise
Handle listener start.
-
Return Type
(error?) ()
if no error occurred, and an error otherwise
Handle listener graceful stop.
-
Return Type
(error?) ()
if no error occurred, and an error otherwise