Listener
-
email
:
Listener
Represents a service listener that monitors the email server location.
Constructor
Gets invoked during the email:Listener
initialization.
__init
(ListenerConfig listenerConfig)
- listenerConfig ListenerConfig
Methods
Stops consuming messages and detaches the service from the email:Listener
.
Stops the email:Listener
forcefully.
Stops the email:Listener
gracefully.
Registers for the Email service.
LifeCycle Methods
Methods
Stops consuming messages and detaches the service from the email:Listener
.
email:Error? result = emailListener.__detach(helloService);
Parameters
- s service
-
Type descriptor of the service
-
Return Type
(error?) ()
or else aemail:Error
upon failure to detach the service
Stops the email:Listener
forcefully.
email:Error? result = emailListener.__immediateStop();
-
Return Type
(error?) ()
or else aemail:Error
upon failure to stop the listener
Stops the email:Listener
gracefully.
email:Error? result = emailListener.__gracefulStop();
-
Return Type
(error?) () or else error upon failure to stop the listener
Registers for the Email service.
emailListener.register(helloService, hello);
Parameters
- emailService service
-
Type descriptor of the service
- name string?
-
Service name
LifeCycle Methods
Starts the email:Listener
.
email:Error? result = emailListener.__start();
-
Return Type
(error?) () or else error upon failure to start the listener
Stops the email:Listener
.
email:Error? result = emailListener.__stop();
-
Return Type
(error?) () or else error upon failure to stop the listener
Binds a service to the email:Listener
.
email:Error? result = emailListener.__attach(helloService, hello);
Parameters
- s service
-
Type descriptor of the service
- name string?
-
Name of the service
-
Return Type
(error?) ()
or else aemail:Error
upon failure to register the listener