Class ClientStreamSession
java.lang.Object
org.apache.qpid.protonj2.client.impl.ClientSession
org.apache.qpid.protonj2.client.impl.ClientStreamSession
- All Implemented Interfaces:
- AutoCloseable,- Session
A specialized 
ClientSession that is the parent of a ClientStreamSender or
 ClientStreamReceiver and cannot create any further resources as the lifetime of the
 session is tied to the child StreamSender or StreamReceiver.- 
Method SummaryModifier and TypeMethodDescriptionCreates a sender that is established to the 'anonymous relay' and as such each message that is sent using this sender must specify an address in its destination address field.openAnonymousSender(SenderOptions senderOptions) Creates a sender that is established to the 'anonymous relay' and as such each message that is sent using this sender must specify an address in its destination address field.openDurableReceiver(String address, String subscriptionName) Creates a receiver used to consume messages from the given node address and configure it such that the remote create a durable node.openDurableReceiver(String address, String subscriptionName, ReceiverOptions receiverOptions) Creates a receiver used to consume messages from the given node address and configure it such that the remote create a durable node.Creates a dynamic receiver used to consume messages from the given node address.openDynamicReceiver(Map<String, Object> dynamicNodeProperties) Creates a dynamic receiver used to consume messages from the given node address.openDynamicReceiver(Map<String, Object> dynamicNodeProperties, ReceiverOptions receiverOptions) Creates a dynamic receiver used to consume messages from the given node address.openDynamicReceiver(ReceiverOptions receiverOptions) Creates a dynamic receiver used to consume messages from the given node address.openReceiver(String address) Creates a receiver used to consume messages from the given node address.openReceiver(String address, ReceiverOptions receiverOptions) Creates a receiver used to consume messages from the given node address.openSender(String address) Creates a sender used to send messages to the given node address.openSender(String address, SenderOptions senderOptions) Creates a sender used to send messages to the given node address.Methods inherited from class org.apache.qpid.protonj2.client.impl.ClientSessionbeginTransaction, checkClosedOrFailed, client, close, close, closeAsync, closeAsync, commitTransaction, connection, desiredCapabilities, nextReceiver, nextReceiver, nextReceiver, nextReceiver, offeredCapabilities, openFuture, properties, rollbackTransaction
- 
Method Details- 
openReceiverDescription copied from interface:SessionCreates a receiver used to consume messages from the given node address.- Specified by:
- openReceiverin interface- Session
- Overrides:
- openReceiverin class- ClientSession
- Parameters:
- address- The source address to attach the consumer to.
- Returns:
- the newly created Receiver
- Throws:
- ClientException- if an internal error occurs.
 
- 
openReceiverpublic Receiver openReceiver(String address, ReceiverOptions receiverOptions) throws ClientException Description copied from interface:SessionCreates a receiver used to consume messages from the given node address.- Specified by:
- openReceiverin interface- Session
- Overrides:
- openReceiverin class- ClientSession
- Parameters:
- address- The source address to attach the consumer to.
- receiverOptions- The options for this receiver.
- Returns:
- the newly created Receiver
- Throws:
- ClientException- if an internal error occurs.
 
- 
openDurableReceiverDescription copied from interface:SessionCreates a receiver used to consume messages from the given node address and configure it such that the remote create a durable node.- Specified by:
- openDurableReceiverin interface- Session
- Overrides:
- openDurableReceiverin class- ClientSession
- Parameters:
- address- The source address to attach the consumer to.
- subscriptionName- The name to give the subscription (link name).
- Returns:
- the newly created Receiver
- Throws:
- ClientException- if an internal error occurs.
 
- 
openDurableReceiverpublic Receiver openDurableReceiver(String address, String subscriptionName, ReceiverOptions receiverOptions) throws ClientException Description copied from interface:SessionCreates a receiver used to consume messages from the given node address and configure it such that the remote create a durable node.- Specified by:
- openDurableReceiverin interface- Session
- Overrides:
- openDurableReceiverin class- ClientSession
- Parameters:
- address- The source address to attach the consumer to.
- subscriptionName- The name to give the subscription (link name).
- receiverOptions- The options for this receiver.
- Returns:
- the newly created Receiver
- Throws:
- ClientException- if an internal error occurs.
 
- 
openDynamicReceiverDescription copied from interface:SessionCreates a dynamic receiver used to consume messages from the given node address.- Specified by:
- openDynamicReceiverin interface- Session
- Overrides:
- openDynamicReceiverin class- ClientSession
- Returns:
- the newly created Receiver
- Throws:
- ClientException- if an internal error occurs.
 
- 
openDynamicReceiverpublic Receiver openDynamicReceiver(Map<String, Object> dynamicNodeProperties) throws ClientExceptionDescription copied from interface:SessionCreates a dynamic receiver used to consume messages from the given node address.- Specified by:
- openDynamicReceiverin interface- Session
- Overrides:
- openDynamicReceiverin class- ClientSession
- Parameters:
- dynamicNodeProperties- The dynamic node properties to be applied to the node created by the remote.
- Returns:
- the newly created Receiver
- Throws:
- ClientException- if an internal error occurs.
 
- 
openDynamicReceiverDescription copied from interface:SessionCreates a dynamic receiver used to consume messages from the given node address.- Specified by:
- openDynamicReceiverin interface- Session
- Overrides:
- openDynamicReceiverin class- ClientSession
- Parameters:
- receiverOptions- The options for this receiver.
- Returns:
- the newly created Receiver
- Throws:
- ClientException- if an internal error occurs.
 
- 
openDynamicReceiverpublic Receiver openDynamicReceiver(Map<String, Object> dynamicNodeProperties, ReceiverOptions receiverOptions) throws ClientExceptionDescription copied from interface:SessionCreates a dynamic receiver used to consume messages from the given node address.- Specified by:
- openDynamicReceiverin interface- Session
- Overrides:
- openDynamicReceiverin class- ClientSession
- Parameters:
- dynamicNodeProperties- The dynamic node properties to be applied to the node created by the remote.
- receiverOptions- The options for this receiver.
- Returns:
- the newly created Receiver
- Throws:
- ClientException- if an internal error occurs.
 
- 
openSenderDescription copied from interface:SessionCreates a sender used to send messages to the given node address. If no address (i.e null) is specified then a sender will be established to the 'anonymous relay' and each message must specify its destination address.- Specified by:
- openSenderin interface- Session
- Overrides:
- openSenderin class- ClientSession
- Parameters:
- address- The target address to attach to, or null to attach to the anonymous relay.
- Returns:
- the newly created Sender.
- Throws:
- ClientException- if an internal error occurs.
 
- 
openSenderDescription copied from interface:SessionCreates a sender used to send messages to the given node address. If no address (i.e null) is specified then a sender will be established to the 'anonymous relay' and each message must specify its destination address.- Specified by:
- openSenderin interface- Session
- Overrides:
- openSenderin class- ClientSession
- Parameters:
- address- The target address to attach to, or null to attach to the anonymous relay.
- senderOptions- The options for this sender.
- Returns:
- the newly created Sender.
- Throws:
- ClientException- if an internal error occurs.
 
- 
openAnonymousSenderDescription copied from interface:SessionCreates a sender that is established to the 'anonymous relay' and as such each message that is sent using this sender must specify an address in its destination address field.- Specified by:
- openAnonymousSenderin interface- Session
- Overrides:
- openAnonymousSenderin class- ClientSession
- Returns:
- the newly created Sender.
- Throws:
- ClientException- if an internal error occurs.
- ClientUnsupportedOperationException- if the remote did not signal support for anonymous relays.
 
- 
openAnonymousSenderDescription copied from interface:SessionCreates a sender that is established to the 'anonymous relay' and as such each message that is sent using this sender must specify an address in its destination address field.- Specified by:
- openAnonymousSenderin interface- Session
- Overrides:
- openAnonymousSenderin class- ClientSession
- Parameters:
- senderOptions- The options for this sender.
- Returns:
- the newly created Sender.
- Throws:
- ClientException- if an internal error occurs.
- ClientUnsupportedOperationException- if the remote did not signal support for anonymous relays.
 
 
-