Class: AmqpReceiver

vertx-amqp-client-js/amqp_receiver~ AmqpReceiver

new AmqpReceiver()

Interface used to consume AMQP message as a stream of message. Back pressure is implemented using AMQP credits.
Source:

Methods

address() → {string}

The listened address.
Source:
Returns:
the address, not null
Type
string

close(handler)

Closes the receiver.
Parameters:
Name Type Description
handler function handler called when the receiver has been closed, can be null
Source:

connection() → {AmqpConnection}

Gets the connection having created the receiver. Cannot be null
Source:
Returns:
the connection having created the receiver.
Type
AmqpConnection

endHandler(endHandler) → {AmqpReceiver}

Parameters:
Name Type Description
endHandler function
Source:
Returns:
Type
AmqpReceiver

exceptionHandler(handler) → {AmqpReceiver}

Parameters:
Name Type Description
handler function
Source:
Returns:
Type
AmqpReceiver

fetch(amount) → {AmqpReceiver}

Parameters:
Name Type Description
amount number
Source:
Returns:
Type
AmqpReceiver

handler(handler) → {AmqpReceiver}

Parameters:
Name Type Description
handler function
Source:
Returns:
Type
AmqpReceiver

pause() → {AmqpReceiver}

Source:
Returns:
Type
AmqpReceiver

pipe() → {Pipe}

Pause this stream and return a to transfer the elements of this stream to a destination .

The stream will be resumed when the pipe will be wired to a WriteStream.

Source:
Returns:
a pipe
Type
Pipe

pipeTo(dst, handler)

Pipe this ReadStream to the WriteStream.

Elements emitted by this stream will be written to the write stream until this stream ends or fails.

Once this stream has ended or failed, the write stream will be ended and the handler will be called with the result.

Parameters:
Name Type Description
dst WriteStream the destination write stream
handler function
Source:

resume() → {AmqpReceiver}

Source:
Returns:
Type
AmqpReceiver