Class InboundConsumer

    • Field Detail

      • logger

        private static final Logger logger
      • DEBUG

        private static final boolean DEBUG
      • workManager

        private WorkManager workManager
        Application server's WorkManager instance.
      • cnx

        private XAConnection cnx
        The provided connection to the underlying JORAM server.
      • subName

        private String subName
        The durable subscription name, if provided.
      • transacted

        private boolean transacted
        true if message consumption occurs in a transaction.
      • maxWorks

        private int maxWorks
        Maximum number of Work instances to be submitted (0 for infinite).
      • ackMode

        private int ackMode
      • closeDurSub

        private boolean closeDurSub
        for closing durable subscription
      • cnxConsumer

        private ConnectionConsumer cnxConsumer
        Wrapped ConnectionConsumer instance.
      • serverSessions

        private int serverSessions
        Number of created server sessions.
    • Constructor Detail

      • InboundConsumer

        public InboundConsumer​(WorkManager workManager,
                               MessageEndpointFactory endpointFactory,
                               XAConnection cnx,
                               Destination dest,
                               String selector,
                               boolean durable,
                               String subName,
                               boolean transacted,
                               int maxWorks,
                               int maxMessages,
                               int ackMode,
                               boolean closeDurSub)
                        throws ResourceException
        Constructs an InboundConsumer instance.
        Parameters:
        workManager - Application server's WorkManager instance.
        endpointFactory - Application's endpoints factory.
        cnx - Connection to the JORAM server.
        dest - Destination to get messages from.
        selector - Selector for filtering messages.
        durable - true for durably subscribing.
        subName - Durable subscription name.
        transacted - true if deliveries will occur in a XA transaction.
        maxWorks - Max number of Work instances to be submitted.
        Throws:
        NotSupportedException - If the activation parameters are invalid.
        SecurityException - If the target destination is not readable.
        CommException - If the connection with the JORAM server is lost.
        ResourceException - Generic exception.