Class ClientStreamSession

    • Method Detail

      • openDurableReceiver

        public Receiver openDurableReceiver​(java.lang.String address,
                                            java.lang.String subscriptionName)
                                     throws ClientException
        Description copied from interface: Session
        Creates a receiver used to consume messages from the given node address and configure it such that the remote create a durable node.
        Specified by:
        openDurableReceiver in interface Session
        Overrides:
        openDurableReceiver in 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.
      • openDurableReceiver

        public Receiver openDurableReceiver​(java.lang.String address,
                                            java.lang.String subscriptionName,
                                            ReceiverOptions receiverOptions)
                                     throws ClientException
        Description copied from interface: Session
        Creates a receiver used to consume messages from the given node address and configure it such that the remote create a durable node.
        Specified by:
        openDurableReceiver in interface Session
        Overrides:
        openDurableReceiver in 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.
      • openDynamicReceiver

        public Receiver openDynamicReceiver​(java.util.Map<java.lang.String,​java.lang.Object> dynamicNodeProperties)
                                     throws ClientException
        Description copied from interface: Session
        Creates a dynamic receiver used to consume messages from the given node address.
        Specified by:
        openDynamicReceiver in interface Session
        Overrides:
        openDynamicReceiver in 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.
      • openDynamicReceiver

        public Receiver openDynamicReceiver​(java.util.Map<java.lang.String,​java.lang.Object> dynamicNodeProperties,
                                            ReceiverOptions receiverOptions)
                                     throws ClientException
        Description copied from interface: Session
        Creates a dynamic receiver used to consume messages from the given node address.
        Specified by:
        openDynamicReceiver in interface Session
        Overrides:
        openDynamicReceiver in 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.
      • openSender

        public Sender openSender​(java.lang.String address)
                          throws ClientException
        Description copied from interface: Session
        Creates 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:
        openSender in interface Session
        Overrides:
        openSender in 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.
      • openSender

        public Sender openSender​(java.lang.String address,
                                 SenderOptions senderOptions)
                          throws ClientException
        Description copied from interface: Session
        Creates 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:
        openSender in interface Session
        Overrides:
        openSender in 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.