Object -
lang.object
:
Listener
Represents the shape expected from all listeners.
Methods
Handle service attachment to the listener.
Parameters
- s service
-
the service to attach
- name string - ()
-
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