Class: Transfers

Transfers

Transfers contains both the IncomingTransfer and OutgoingTransfer for the Worker


Properties:
Name Type Description
incoming IncomingTransfer

The IncomingTransfer for the Worker if the related Reservation was initiated via transfer by another agent

outgoing OutgoingTransfer

The current active (initiated but not yet finished) OutgoingTransfer initiated by the Worker to another agent or queue

Extends

  • EventEmitter

Members


incoming :IncomingTransfer

Type:

outgoing :OutgoingTransfer

Type:

Methods


_emitEvent(eventType, rawEventData)

Emit the transfer event and handle any appropriate clean-up or data modification

Parameters:
Name Type Description
eventType Object

the name of the transfer event

rawEventData Object

the raw payload contents of the event


_update(latestTransfersData)

Update Transfers using the latest transfers data

Parameters:
Name Type Description
latestTransfersData Object

The latest transfers data