The amqpreceiver object provides the agent with the ability to handle incoming AMQP messages via an established session. Messages are handled by the function registered by amqpsession.openreceiver().
amqpreceiver objects are automatically closed when they are deallocated, which occurs (also automatically) when they go out of scope. To manually close an amqpreceiver, it must be deallocated by setting it to null.