• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java ServerSessionPool类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中javax.jms.ServerSessionPool的典型用法代码示例。如果您正苦于以下问题:Java ServerSessionPool类的具体用法?Java ServerSessionPool怎么用?Java ServerSessionPool使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ServerSessionPool类属于javax.jms包,在下文中一共展示了ServerSessionPool类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: createConnectionConsumer

import javax.jms.ServerSessionPool; //导入依赖的package包/类
public ConnectionConsumer createConnectionConsumer(Destination destination, String messageSelector, ServerSessionPool sessionPool, int maxMessages, boolean noLocal)
    throws JMSException {

    checkClosedOrFailed();
    ensureConnectionInfoSent();

    ConsumerId consumerId = createConsumerId();
    ConsumerInfo consumerInfo = new ConsumerInfo(consumerId);
    consumerInfo.setDestination(ActiveMQMessageTransformation.transformDestination(destination));
    consumerInfo.setSelector(messageSelector);
    consumerInfo.setPrefetchSize(maxMessages);
    consumerInfo.setNoLocal(noLocal);
    consumerInfo.setDispatchAsync(isDispatchAsync());

    // Allows the options on the destination to configure the consumerInfo
    if (consumerInfo.getDestination().getOptions() != null) {
        Map<String, String> options = new HashMap<String, String>(consumerInfo.getDestination().getOptions());
        IntrospectionSupport.setProperties(consumerInfo, options, "consumer.");
    }

    return new ActiveMQConnectionConsumer(this, sessionPool, consumerInfo);
}
 
开发者ID:DiamondLightSource,项目名称:daq-eclipse,代码行数:23,代码来源:ActiveMQConnection.java


示例2: createConnectionConsumer

import javax.jms.ServerSessionPool; //导入依赖的package包/类
/**
 * 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 (ActiveMQRASessionFactoryImpl.trace) {
      ActiveMQRALogger.LOGGER.trace("createConnectionConsumer(" + queue +
                                       ", " +
                                       messageSelector +
                                       ", " +
                                       sessionPool +
                                       ", " +
                                       maxMessages +
                                       ")");
   }

   throw new IllegalStateException(ISE);
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:29,代码来源:ActiveMQRASessionFactoryImpl.java


示例3: createDurableConnectionConsumer

import javax.jms.ServerSessionPool; //导入依赖的package包/类
/**
 * 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 (ActiveMQRASessionFactoryImpl.trace) {
      ActiveMQRALogger.LOGGER.trace("createConnectionConsumer(" + topic +
                                       ", " +
                                       subscriptionName +
                                       ", " +
                                       messageSelector +
                                       ", " +
                                       sessionPool +
                                       ", " +
                                       maxMessages +
                                       ")");
   }

   throw new IllegalStateException(ISE);
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:33,代码来源:ActiveMQRASessionFactoryImpl.java


示例4: createDurableConnectionConsumer

import javax.jms.ServerSessionPool; //导入依赖的package包/类
@Override
public ConnectionConsumer createDurableConnectionConsumer(final Topic topic,
                                                          final String subscriptionName,
                                                          final String messageSelector,
                                                          final ServerSessionPool sessionPool,
                                                          final int maxMessages) throws JMSException {
   checkClosed();
   // As spec. section 4.11
   if (connectionType == ActiveMQConnection.TYPE_QUEUE_CONNECTION) {
      String msg = "Cannot create a durable connection consumer on a QueueConnection";
      throw new javax.jms.IllegalStateException(msg);
   }
   checkTempQueues(topic);
   // We offer RA, so no need for this
   return null;
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:17,代码来源:ActiveMQConnection.java


示例5: createConnectionConsumer

import javax.jms.ServerSessionPool; //导入依赖的package包/类
@Override
public ConnectionConsumer createConnectionConsumer(
        final Destination destination,
        final String messageSelector,
        final ServerSessionPool sessionPool,
        final int maxMessages
) throws JMSException {
    return null;
}
 
开发者ID:dajudge,项目名称:testee.fi,代码行数:10,代码来源:TestEEfiConnection.java


示例6: createSharedConnectionConsumer

import javax.jms.ServerSessionPool; //导入依赖的package包/类
@Override
public ConnectionConsumer createSharedConnectionConsumer(
        final Topic topic,
        final String subscriptionName,
        final String messageSelector,
        final ServerSessionPool sessionPool,
        final int maxMessages
) throws JMSException {
    return null;
}
 
开发者ID:dajudge,项目名称:testee.fi,代码行数:11,代码来源:TestEEfiConnection.java


示例7: createDurableConnectionConsumer

import javax.jms.ServerSessionPool; //导入依赖的package包/类
@Override
public ConnectionConsumer createDurableConnectionConsumer(
        final Topic topic,
        final String subscriptionName,
        final String messageSelector,
        final ServerSessionPool sessionPool,
        final int maxMessages
) throws JMSException {
    return null;
}
 
开发者ID:dajudge,项目名称:testee.fi,代码行数:11,代码来源:TestEEfiConnection.java


示例8: createSharedDurableConnectionConsumer

import javax.jms.ServerSessionPool; //导入依赖的package包/类
@Override
public ConnectionConsumer createSharedDurableConnectionConsumer(
        final Topic topic,
        final String subscriptionName,
        final String messageSelector,
        final ServerSessionPool sessionPool,
        final int maxMessages
) throws JMSException {
    return null;
}
 
开发者ID:dajudge,项目名称:testee.fi,代码行数:11,代码来源:TestEEfiConnection.java


示例9: createConnectionConsumer

import javax.jms.ServerSessionPool; //导入依赖的package包/类
@Override
public ConnectionConsumer createConnectionConsumer(
                                                    Topic topic,
                                                    String messageSelector,
                                                    ServerSessionPool sessionPool,
                                                    int maxMessages ) throws JMSException {

    return addConnectionConsumer(topicConnection.createConnectionConsumer(topic,
                                                                          messageSelector,
                                                                          sessionPool,
                                                                          maxMessages));
}
 
开发者ID:Axway,项目名称:ats-framework,代码行数:13,代码来源:ManagedTopicConnection.java


示例10: createConnectionConsumer

import javax.jms.ServerSessionPool; //导入依赖的package包/类
@Override
public ConnectionConsumer createConnectionConsumer(
                                                    Destination destination,
                                                    String messageSelector,
                                                    ServerSessionPool sessionPool,
                                                    int maxMessages ) throws JMSException {

    return connection.createConnectionConsumer(destination, messageSelector, sessionPool, maxMessages);
}
 
开发者ID:Axway,项目名称:ats-framework,代码行数:10,代码来源:ManagedConnection.java


示例11: createDurableConnectionConsumer

import javax.jms.ServerSessionPool; //导入依赖的package包/类
@Override
public ConnectionConsumer createDurableConnectionConsumer(
                                                           Topic topic,
                                                           String subscriptionName,
                                                           String messageSelector,
                                                           ServerSessionPool sessionPool,
                                                           int maxMessages ) throws JMSException {

    return connection.createDurableConnectionConsumer(topic,
                                                      subscriptionName,
                                                      messageSelector,
                                                      sessionPool,
                                                      maxMessages);
}
 
开发者ID:Axway,项目名称:ats-framework,代码行数:15,代码来源:ManagedConnection.java


示例12: createConnectionConsumer

import javax.jms.ServerSessionPool; //导入依赖的package包/类
@Override
public ConnectionConsumer createConnectionConsumer(
                                                    Queue queue,
                                                    String messageSelector,
                                                    ServerSessionPool sessionPool,
                                                    int maxMessages ) throws JMSException {

    return addConnectionConsumer(queueConnection.createConnectionConsumer(queue,
                                                                          messageSelector,
                                                                          sessionPool,
                                                                          maxMessages));
}
 
开发者ID:Axway,项目名称:ats-framework,代码行数:13,代码来源:ManagedQueueConnection.java


示例13: createConnectionConsumer

import javax.jms.ServerSessionPool; //导入依赖的package包/类
@Override
public ConnectionConsumer createConnectionConsumer(
                                                    Queue queue,
                                                    String messageSelector,
                                                    ServerSessionPool sessionPool,
                                                    int maxMessages ) throws JMSException {

    return addConnectionConsumer( ((QueueConnection) connection).createConnectionConsumer(queue,
                                                                                          messageSelector,
                                                                                          sessionPool,
                                                                                          maxMessages));
}
 
开发者ID:Axway,项目名称:ats-framework,代码行数:13,代码来源:ManagedQueueTopicConnection.java


示例14: createSharedConnectionConsumer

import javax.jms.ServerSessionPool; //导入依赖的package包/类
@Override
public ConnectionConsumer createSharedConnectionConsumer(Topic arg0,
        String arg1, String arg2, ServerSessionPool arg3, int arg4)
                throws JMSException {
    // TODO Auto-generated method stub
    return null;
}
 
开发者ID:servicecatalog,项目名称:oscm,代码行数:8,代码来源:ConnectionStub.java


示例15: createSharedDurableConnectionConsumer

import javax.jms.ServerSessionPool; //导入依赖的package包/类
@Override
public ConnectionConsumer createSharedDurableConnectionConsumer(Topic arg0,
        String arg1, String arg2, ServerSessionPool arg3, int arg4)
                throws JMSException {
    // TODO Auto-generated method stub
    return null;
}
 
开发者ID:servicecatalog,项目名称:oscm,代码行数:8,代码来源:ConnectionStub.java


示例16: createConnectionConsumer

import javax.jms.ServerSessionPool; //导入依赖的package包/类
public ConnectionConsumer createConnectionConsumer(Destination destination,
        String messageSelector, ServerSessionPool sessionPool,
        int maxMessages) throws JMSException {
    this.checkStatus();

    return null;
}
 
开发者ID:zhaojunfei,项目名称:lemon,代码行数:8,代码来源:ProxyConnection.java


示例17: createDurableConnectionConsumer

import javax.jms.ServerSessionPool; //导入依赖的package包/类
public ConnectionConsumer createDurableConnectionConsumer(Topic topic,
        String subscriptionName, String messageSelector,
        ServerSessionPool sessionPool, int maxMessages) throws JMSException {
    this.checkStatus();

    return null;
}
 
开发者ID:zhaojunfei,项目名称:lemon,代码行数:8,代码来源:ProxyConnection.java


示例18: createConnectionConsumer

import javax.jms.ServerSessionPool; //导入依赖的package包/类
@Override
public ConnectionConsumer createConnectionConsumer(
    final Destination destination,
    final String messageSelector,
    final ServerSessionPool serverSessionPool,
    final int maxMessages) throws JMSException {
  return null;
}
 
开发者ID:GoogleCloudPlatform,项目名称:pubsub,代码行数:9,代码来源:PubSubConnection.java


示例19: createSharedConnectionConsumer

import javax.jms.ServerSessionPool; //导入依赖的package包/类
@Override
public ConnectionConsumer createSharedConnectionConsumer(
    final Topic topic,
    final String subscriptionName,
    final String messageSelector,
    final ServerSessionPool serverSessionPool,
    final int maxMessages) throws JMSException {
  return null;
}
 
开发者ID:GoogleCloudPlatform,项目名称:pubsub,代码行数:10,代码来源:PubSubConnection.java


示例20: createDurableConnectionConsumer

import javax.jms.ServerSessionPool; //导入依赖的package包/类
@Override
public ConnectionConsumer createDurableConnectionConsumer(
    final Topic topic,
    final String subscriptionName,
    final String messageSelector,
    final ServerSessionPool serverSessionPool,
    final int maxMessages) throws JMSException {
  return null;
}
 
开发者ID:GoogleCloudPlatform,项目名称:pubsub,代码行数:10,代码来源:PubSubConnection.java



注:本文中的javax.jms.ServerSessionPool类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java Preference类代码示例发布时间:2022-05-21
下一篇:
Java FSTableDescriptors类代码示例发布时间:2022-05-21
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap