Object - lang.object : AbstractListener

Represents the shape expected from all listeners.

__start

()

returns error?

Handle listener start.

  • Return Type

    (error?)
  • error if __start() fails, () otherwise

__gracefulStop

()

returns error?

Handle listener graceful stop.

  • Return Type

    (error?)
  • error if __gracefulStop fails, () otherwise

__immediateStop

()

returns error?

Handle listener immediate stop.

  • Return Type

    (error?)
  • error if __immediateStop fails, () otherwise

__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?)
  • error if attachment fails, () otherwise

__detach

(service s)

returns error?

Handle service detachment from the listener.

Parameters

  • Return Type

    (error?)
  • error if detachment fails, () otherwise