本文整理汇总了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;未经允许,请勿转载。 |
请发表评论