Checks performed over this component to achieve the resulted status
Resource close function
Component identifier
Component name
Resource start function
Resource status
Resource stop function
Add a listener for the error
event, emitted when the component detects an error.
Add a listener for the status event, emitted when the component status changes.
status
event
Status event listener
A resource is extended component that represent the access to an external/internal resource, besides the error handling and identity, it has a start, stop and close methods to manage the resource lifecycle. It also has a checks property to define the checks that will be performed over the resource to achieve the resulted status. The most typical example of a resource are the Provider that allow to access to external databases, message brokers, etc.