Object - lang.object : Listener

Represents the shape expected from all listeners.

__attach

(service s, string? name)

returns error?

Handle service attachment to the listener.

Parameters

  • name string? - ()
  • optionally a name associated with the service

  • Return Type

    (error?)
  • () if no error occurred, and an error otherwise

__detach

(service s)

returns error?

Handle service detachment from the listener.

Parameters

  • Return Type

    (error?)
  • () if no error occurred, and an error otherwise

__start

()

returns error?

Handle listener start.

  • Return Type

    (error?)
  • () if no error occurred, and an error otherwise

__gracefulStop

()

returns error?

Handle listener graceful stop.

  • Return Type

    (error?)
  • () if no error occurred, and an error otherwise

__immediateStop

()

returns error?

Handle listener immediate stop.

  • Return Type

    (error?)
  • () if no error occurred, and an error otherwise