Abstract
Underlying client type, this is, the real client of the wrapped provider
Port configuration object, could be an extended version of the client config
Implementation of functionalities of an Elastic port instance.
Port configuration options
Port logger, to be used internally
Consumer/Producer instance
This is the class that should be extended to implement a new specific Port.
This class implements some util logic to facilitate the creation of new Ports, for this reason is exposed as abstract class, instead of an interface. The basic operations that already implemented in the class are:
What the user of this class should develop in the specific port:
In the other hand, this class extends the
EventEmitter
class, so it's possible to emit events to notify the status of the port:Check some examples of implementation in: