Listener -
file
: Listener
Represents the directory listener endpoint, which is used to listen to a directory in the local file system.
Constructor
__init
(ListenerConfig listenerConfig)
- listenerConfig ListenerConfig
-
The
ListenerConfigrecord with the directory details
Methods
Stops the file:Listener gracefully.
Stops the file:Listener forcefully.
Stops listening to the directory and detaches the service from the file:Listener.
LifeCycle Methods
Methods
Stops the file:Listener gracefully.
-
Return Type
(error?) () or else error upon failure to stop the listener
Stops the file:Listener forcefully.
-
Return Type
(error?) () or else error upon failure to stop the listener
Stops listening to the directory and detaches the service from the file:Listener.
Parameters
- s service
-
Type descriptor of the service
-
Return Type
(error?) () or else error upon failure to detach to the service
LifeCycle Methods
Starts the file:Listener.
-
Return Type
(error?) () or else error upon failure to start the listener