类javax.jms.ServerSessionPool源码实例Demo

下面列出了怎么用javax.jms.ServerSessionPool的API类实例代码及写法,或者点击链接到github查看源代码。

/**
 * Create a connection consumer -- throws IllegalStateException
 *
 * @param queue           The queue
 * @param messageSelector The message selector
 * @param sessionPool     The session pool
 * @param maxMessages     The number of max messages
 * @return The connection consumer
 * @throws JMSException Thrown if an error occurs
 */
@Override
public ConnectionConsumer createConnectionConsumer(final Queue queue,
                                                   final String messageSelector,
                                                   final ServerSessionPool sessionPool,
                                                   final int maxMessages) throws JMSException {
   if (ActiveMQRALogger.LOGGER.isTraceEnabled()) {
      ActiveMQRALogger.LOGGER.trace("createConnectionConsumer(" + queue +
                                       ", " +
                                       messageSelector +
                                       ", " +
                                       sessionPool +
                                       ", " +
                                       maxMessages +
                                       ")");
   }

   throw new IllegalStateException(ISE);
}
 
/**
 * Create a connection consumer -- throws IllegalStateException
 *
 * @param topic           The topic
 * @param messageSelector The message selector
 * @param sessionPool     The session pool
 * @param maxMessages     The number of max messages
 * @return The connection consumer
 * @throws JMSException Thrown if an error occurs
 */
@Override
public ConnectionConsumer createConnectionConsumer(final Topic topic,
                                                   final String messageSelector,
                                                   final ServerSessionPool sessionPool,
                                                   final int maxMessages) throws JMSException {
   if (ActiveMQRALogger.LOGGER.isTraceEnabled()) {
      ActiveMQRALogger.LOGGER.trace("createConnectionConsumer(" + topic +
                                       ", " +
                                       messageSelector +
                                       ", " +
                                       sessionPool +
                                       ", " +
                                       maxMessages +
                                       ")");
   }

   throw new IllegalStateException(ISE);
}
 
/**
 * Create a durable connection consumer -- throws IllegalStateException
 *
 * @param topic            The topic
 * @param subscriptionName The subscription name
 * @param messageSelector  The message selector
 * @param sessionPool      The session pool
 * @param maxMessages      The number of max messages
 * @return The connection consumer
 * @throws JMSException Thrown if an error occurs
 */
@Override
public ConnectionConsumer createDurableConnectionConsumer(final Topic topic,
                                                          final String subscriptionName,
                                                          final String messageSelector,
                                                          final ServerSessionPool sessionPool,
                                                          final int maxMessages) throws JMSException {
   if (ActiveMQRALogger.LOGGER.isTraceEnabled()) {
      ActiveMQRALogger.LOGGER.trace("createConnectionConsumer(" + topic +
                                       ", " +
                                       subscriptionName +
                                       ", " +
                                       messageSelector +
                                       ", " +
                                       sessionPool +
                                       ", " +
                                       maxMessages +
                                       ")");
   }

   throw new IllegalStateException(ISE);
}
 
/**
 * Create a connection consumer -- throws IllegalStateException
 *
 * @param destination The destination
 * @param name        The name
 * @param pool        The session pool
 * @param maxMessages The number of max messages
 * @return The connection consumer
 * @throws JMSException Thrown if an error occurs
 */
@Override
public ConnectionConsumer createConnectionConsumer(final Destination destination,
                                                   final String name,
                                                   final ServerSessionPool pool,
                                                   final int maxMessages) throws JMSException {
   if (ActiveMQRALogger.LOGGER.isTraceEnabled()) {
      ActiveMQRALogger.LOGGER.trace("createConnectionConsumer(" + destination +
                                       ", " +
                                       name +
                                       ", " +
                                       pool +
                                       ", " +
                                       maxMessages +
                                       ")");
   }

   throw new IllegalStateException(ISE);
}
 
源代码5 项目: ats-framework   文件: ManagedTopicConnection.java
@Override
public ConnectionConsumer createConnectionConsumer(
                                                    Topic topic,
                                                    String messageSelector,
                                                    ServerSessionPool sessionPool,
                                                    int maxMessages ) throws JMSException {

    return addConnectionConsumer(topicConnection.createConnectionConsumer(topic,
                                                                          messageSelector,
                                                                          sessionPool,
                                                                          maxMessages));
}
 
源代码6 项目: ats-framework   文件: ManagedConnection.java
@Override
public ConnectionConsumer createConnectionConsumer(
                                                    Destination destination,
                                                    String messageSelector,
                                                    ServerSessionPool sessionPool,
                                                    int maxMessages ) throws JMSException {

    return connection.createConnectionConsumer(destination, messageSelector, sessionPool, maxMessages);
}
 
源代码7 项目: ats-framework   文件: ManagedConnection.java
@Override
public ConnectionConsumer createDurableConnectionConsumer(
                                                           Topic topic,
                                                           String subscriptionName,
                                                           String messageSelector,
                                                           ServerSessionPool sessionPool,
                                                           int maxMessages ) throws JMSException {

    return connection.createDurableConnectionConsumer(topic,
                                                      subscriptionName,
                                                      messageSelector,
                                                      sessionPool,
                                                      maxMessages);
}
 
源代码8 项目: ats-framework   文件: ManagedQueueConnection.java
@Override
public ConnectionConsumer createConnectionConsumer(
                                                    Queue queue,
                                                    String messageSelector,
                                                    ServerSessionPool sessionPool,
                                                    int maxMessages ) throws JMSException {

    return addConnectionConsumer(queueConnection.createConnectionConsumer(queue,
                                                                          messageSelector,
                                                                          sessionPool,
                                                                          maxMessages));
}
 
@Override
public ConnectionConsumer createConnectionConsumer(
                                                    Queue queue,
                                                    String messageSelector,
                                                    ServerSessionPool sessionPool,
                                                    int maxMessages ) throws JMSException {

    return addConnectionConsumer( ((QueueConnection) connection).createConnectionConsumer(queue,
                                                                                          messageSelector,
                                                                                          sessionPool,
                                                                                          maxMessages));
}
 
@Override
public ConnectionConsumer createConnectionConsumer(
                                                    Topic topic,
                                                    String messageSelector,
                                                    ServerSessionPool sessionPool,
                                                    int maxMessages ) throws JMSException {

    return addConnectionConsumer( ((TopicConnection) connection).createConnectionConsumer(topic,
                                                                                          messageSelector,
                                                                                          sessionPool,
                                                                                          maxMessages));
}
 
源代码11 项目: development   文件: ConnectionStub.java
@Override
public ConnectionConsumer createSharedConnectionConsumer(Topic arg0,
        String arg1, String arg2, ServerSessionPool arg3, int arg4)
                throws JMSException {
    // TODO Auto-generated method stub
    return null;
}
 
源代码12 项目: development   文件: ConnectionStub.java
@Override
public ConnectionConsumer createSharedDurableConnectionConsumer(Topic arg0,
        String arg1, String arg2, ServerSessionPool arg3, int arg4)
                throws JMSException {
    // TODO Auto-generated method stub
    return null;
}
 
/**
 * Create a connection consumer -- throws IllegalStateException
 *
 * @param destination The destination
 * @param pool        The session pool
 * @param maxMessages The number of max messages
 * @return The connection consumer
 * @throws JMSException Thrown if an error occurs
 */
public ConnectionConsumer createConnectionConsumer(final Destination destination,
                                                   final ServerSessionPool pool,
                                                   final int maxMessages) throws JMSException {
   if (ActiveMQRALogger.LOGGER.isTraceEnabled()) {
      ActiveMQRALogger.LOGGER.trace("createConnectionConsumer(" + destination +
                                       ", " +
                                       pool +
                                       ", " +
                                       maxMessages +
                                       ")");
   }

   throw new IllegalStateException(ISE);
}
 
@Override
public ConnectionConsumer createSharedConnectionConsumer(Topic topic,
                                                         String subscriptionName,
                                                         String messageSelector,
                                                         ServerSessionPool sessionPool,
                                                         int maxMessages) throws JMSException {
   if (ActiveMQRALogger.LOGGER.isTraceEnabled()) {
      ActiveMQRALogger.LOGGER.trace("createSharedConnectionConsumer(" + topic + ", " + subscriptionName + ", " +
                                       messageSelector + ", " + sessionPool + ", " + maxMessages + ")");
   }

   throw new IllegalStateException(ISE);
}
 
@Override
public ConnectionConsumer createSharedDurableConnectionConsumer(Topic topic,
                                                                String subscriptionName,
                                                                String messageSelector,
                                                                ServerSessionPool sessionPool,
                                                                int maxMessages) throws JMSException {
   if (ActiveMQRALogger.LOGGER.isTraceEnabled()) {
      ActiveMQRALogger.LOGGER.trace("createSharedDurableConnectionConsumer(" + topic + ", " + subscriptionName +
                                       ", " + messageSelector + ", " + sessionPool + ", " + maxMessages + ")");
   }

   throw new IllegalStateException(ISE);
}
 
源代码16 项目: activemq-artemis   文件: ActiveMQConnection.java
@Override
public ConnectionConsumer createConnectionConsumer(final Destination destination,
                                                   final String messageSelector,
                                                   final ServerSessionPool sessionPool,
                                                   final int maxMessages) throws JMSException {
   checkClosed();

   checkTempQueues(destination);

   // We offer a RA, so no need to implement this for MDBs
   return null;
}
 
源代码17 项目: activemq-artemis   文件: ActiveMQConnection.java
@Override
public ConnectionConsumer createConnectionConsumer(final Queue queue,
                                                   final String messageSelector,
                                                   final ServerSessionPool sessionPool,
                                                   final int maxMessages) throws JMSException {
   checkClosed();
   checkTempQueues(queue);
   return null;
}
 
源代码18 项目: activemq-artemis   文件: ActiveMQConnection.java
@Override
public ConnectionConsumer createConnectionConsumer(final Topic topic,
                                                   final String messageSelector,
                                                   final ServerSessionPool sessionPool,
                                                   final int maxMessages) throws JMSException {
   checkClosed();
   checkTempQueues(topic);
   return null;
}
 
源代码19 项目: activemq-artemis   文件: ActiveMQConnection.java
@Override
public ConnectionConsumer createSharedConnectionConsumer(Topic topic,
                                                         String subscriptionName,
                                                         String messageSelector,
                                                         ServerSessionPool sessionPool,
                                                         int maxMessages) throws JMSException {
   return null; // we offer RA
}
 
源代码20 项目: activemq-artemis   文件: ActiveMQConnection.java
@Override
public ConnectionConsumer createSharedDurableConnectionConsumer(Topic topic,
                                                                String subscriptionName,
                                                                String messageSelector,
                                                                ServerSessionPool sessionPool,
                                                                int maxMessages) throws JMSException {
   return null; // we offer RA
}
 
源代码21 项目: qpid-jms   文件: JmsConnectionConsumer.java
public JmsConnectionConsumer(JmsConnection connection, JmsConsumerInfo consumerInfo, MessageQueue messageQueue, ServerSessionPool sessionPool) throws JMSException {
    this.connection = connection;
    this.consumerInfo = consumerInfo;
    this.sessionPool = sessionPool;
    this.messageQueue = messageQueue;
    this.dispatcher = new ScheduledThreadPoolExecutor(1, new ThreadFactory() {

        @Override
        public Thread newThread(Runnable runner) {
            Thread serial = new Thread(runner);
            serial.setDaemon(true);
            serial.setName(this.getClass().getSimpleName() + ":(" + consumerInfo.getId() + ")");
            return serial;
        }
    });

    // Ensure a timely shutdown for consumer close.
    dispatcher.setExecuteExistingDelayedTasksAfterShutdownPolicy(false);
    dispatcher.setContinueExistingPeriodicTasksAfterShutdownPolicy(false);

    connection.createResource(consumerInfo, new ProviderSynchronization() {

        @Override
        public void onPendingSuccess() {
            connection.addConnectionConsumer(consumerInfo, JmsConnectionConsumer.this);
        }

        @Override
        public void onPendingFailure(ProviderException cause) {
        }
    });
}
 
源代码22 项目: qpid-jms   文件: JmsConnection.java
@Override
public ConnectionConsumer createSharedConnectionConsumer(Topic topic, String subscriptionName, String messageSelector, ServerSessionPool sessionPool, int maxMessages) throws JMSException {
    checkClosedOrFailed();
    createJmsConnection();

    return createConnectionConsumer(topic, messageSelector, sessionPool, maxMessages, subscriptionName, false, true);
}
 
源代码23 项目: qpid-jms   文件: JmsConnection.java
@Override
public ConnectionConsumer createSharedDurableConnectionConsumer(Topic topic, String subscriptionName, String messageSelector, ServerSessionPool sessionPool, int maxMessages) throws JMSException {
    checkClosedOrFailed();
    createJmsConnection();

    return createConnectionConsumer(topic, messageSelector, sessionPool, maxMessages, subscriptionName, true, true);
}
 
源代码24 项目: qpid-jms   文件: JmsConnection.java
@Override
public ConnectionConsumer createDurableConnectionConsumer(Topic topic, String subscriptionName, String messageSelector, ServerSessionPool sessionPool, int maxMessages) throws JMSException {
    checkClosedOrFailed();
    createJmsConnection();

    return createConnectionConsumer(topic, messageSelector, sessionPool, maxMessages, subscriptionName, true, false);
}
 
源代码25 项目: qpid-jms   文件: JmsConnection.java
@Override
public ConnectionConsumer createConnectionConsumer(Destination destination, String messageSelector, ServerSessionPool sessionPool, int maxMessages) throws JMSException {
    checkClosedOrFailed();
    createJmsConnection();

    return createConnectionConsumer(destination, messageSelector, sessionPool, maxMessages, null, false, false);
}
 
源代码26 项目: qpid-jms   文件: JmsConnection.java
@Override
public ConnectionConsumer createConnectionConsumer(Queue queue, String messageSelector, ServerSessionPool sessionPool, int maxMessages) throws JMSException {
    checkClosedOrFailed();
    createJmsConnection();

    return createConnectionConsumer(queue, messageSelector, sessionPool, maxMessages, null, false, false);
}
 
源代码27 项目: spring-analysis-note   文件: TestConnection.java
@Override
public ConnectionConsumer createConnectionConsumer(Destination destination, String paramName, ServerSessionPool serverSessionPool, int i) throws JMSException {
	return null;
}
 
源代码28 项目: spring-analysis-note   文件: TestConnection.java
@Override
public ConnectionConsumer createDurableConnectionConsumer(Topic topic, String paramName, String paramName1, ServerSessionPool serverSessionPool, int i) throws JMSException {
	return null;
}
 
源代码29 项目: spring-analysis-note   文件: TestConnection.java
@Override
public ConnectionConsumer createSharedConnectionConsumer(Topic topic, String subscriptionName, String messageSelector, ServerSessionPool sessionPool, int maxMessages) throws JMSException {
	return null;
}
 
源代码30 项目: spring-analysis-note   文件: TestConnection.java
@Override
public ConnectionConsumer createSharedDurableConnectionConsumer(Topic topic, String subscriptionName, String messageSelector, ServerSessionPool sessionPool, int maxMessages) throws JMSException {
	return null;
}
 
 类所在包
 同包方法