本文整理了Java中org.apache.qpid.proton.amqp.messaging.Source.setExpiryPolicy()
方法的一些代码示例,展示了Source.setExpiryPolicy()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Source.setExpiryPolicy()
方法的具体详情如下:
包路径:org.apache.qpid.proton.amqp.messaging.Source
类名称:Source
方法名:setExpiryPolicy
暂无
代码示例来源:origin: org.apache.qpid/proton-j
case 8:
Symbol expiryPolicy = (Symbol) l.get(2);
o.setExpiryPolicy(expiryPolicy == null ? TerminusExpiryPolicy.SESSION_END : TerminusExpiryPolicy.valueOf(expiryPolicy));
case 9:
UnsignedInteger durable = (UnsignedInteger) l.get(1);
代码示例来源:origin: org.apache.qpid/proton
case 8:
Symbol expiryPolicy = (Symbol) l.get(2);
o.setExpiryPolicy(expiryPolicy == null ? TerminusExpiryPolicy.SESSION_END : TerminusExpiryPolicy.valueOf(expiryPolicy));
case 9:
UnsignedInteger durable = (UnsignedInteger) l.get(1);
代码示例来源:origin: com.microsoft.azure.iot/proton-j-azure-iot
case 8:
Symbol expiryPolicy = (Symbol) l.get(2);
o.setExpiryPolicy(expiryPolicy == null ? TerminusExpiryPolicy.SESSION_END : TerminusExpiryPolicy.valueOf(expiryPolicy));
case 9:
UnsignedInteger durable = (UnsignedInteger) l.get(1);
代码示例来源:origin: org.apache.qpid/proton-j-impl
case 8:
Symbol expiryPolicy = (Symbol) l.get(2);
o.setExpiryPolicy(expiryPolicy == null ? TerminusExpiryPolicy.SESSION_END : TerminusExpiryPolicy.valueOf(expiryPolicy));
case 9:
UnsignedInteger durable = (UnsignedInteger) l.get(1);
代码示例来源:origin: apache/activemq-artemis
protected void configureSource(Source source) {
Map<Symbol, DescribedType> filters = new HashMap<>();
Symbol[] outcomes = new Symbol[] {Accepted.DESCRIPTOR_SYMBOL, Rejected.DESCRIPTOR_SYMBOL, Released.DESCRIPTOR_SYMBOL, Modified.DESCRIPTOR_SYMBOL};
if (getSubscriptionName() != null && !getSubscriptionName().isEmpty()) {
source.setExpiryPolicy(TerminusExpiryPolicy.NEVER);
source.setDurable(TerminusDurability.UNSETTLED_STATE);
source.setDistributionMode(COPY);
} else {
source.setDurable(TerminusDurability.NONE);
source.setExpiryPolicy(TerminusExpiryPolicy.LINK_DETACH);
}
source.setOutcomes(outcomes);
Modified modified = new Modified();
modified.setDeliveryFailed(true);
modified.setUndeliverableHere(false);
source.setDefaultOutcome(modified);
if (isNoLocal()) {
filters.put(NO_LOCAL_NAME, AmqpNoLocalFilter.NO_LOCAL);
}
if (getSelector() != null && !getSelector().trim().equals("")) {
filters.put(JMS_SELECTOR_NAME, new AmqpJmsSelectorFilter(getSelector()));
}
if (!filters.isEmpty()) {
source.setFilter(filters);
}
}
代码示例来源:origin: org.apache.qpid/qpid-jms-client
source.setExpiryPolicy(TerminusExpiryPolicy.NEVER);
source.setDurable(TerminusDurability.UNSETTLED_STATE);
source.setDistributionMode(COPY);
} else {
source.setDurable(TerminusDurability.NONE);
source.setExpiryPolicy(TerminusExpiryPolicy.LINK_DETACH);
代码示例来源:origin: apache/qpid-jms
source.setExpiryPolicy(TerminusExpiryPolicy.NEVER);
source.setDurable(TerminusDurability.UNSETTLED_STATE);
source.setDistributionMode(COPY);
} else {
source.setDurable(TerminusDurability.NONE);
source.setExpiryPolicy(TerminusExpiryPolicy.LINK_DETACH);
代码示例来源:origin: io.vertx/vertx-proton
durable = options.isDurable();
if(durable) {
source.setExpiryPolicy(TerminusExpiryPolicy.NEVER);
source.setDurable(TerminusDurability.UNSETTLED_STATE);
代码示例来源:origin: apache/activemq-artemis
protected Source createDynamicSource(boolean topic) {
Source source = new Source();
source.setDynamic(true);
source.setDurable(TerminusDurability.NONE);
source.setExpiryPolicy(TerminusExpiryPolicy.LINK_DETACH);
// Set the dynamic node lifetime-policy
Map<Symbol, Object> dynamicNodeProperties = new HashMap<>();
dynamicNodeProperties.put(LIFETIME_POLICY, DeleteOnClose.getInstance());
source.setDynamicNodeProperties(dynamicNodeProperties);
// Set the capability to indicate the node type being created
if (!topic) {
source.setCapabilities(TEMP_QUEUE_CAPABILITY);
} else {
source.setCapabilities(TEMP_TOPIC_CAPABILITY);
}
return source;
}
代码示例来源:origin: org.apache.activemq/activemq-all
source.setAddress(destination.getQualifiedName());
source.setDurable(TerminusDurability.UNSETTLED_STATE);
source.setExpiryPolicy(TerminusExpiryPolicy.NEVER);
source.setDistributionMode(COPY);
代码示例来源:origin: org.apache.activemq/activemq-osgi
source.setAddress(destination.getQualifiedName());
source.setDurable(TerminusDurability.UNSETTLED_STATE);
source.setExpiryPolicy(TerminusExpiryPolicy.NEVER);
source.setDistributionMode(COPY);
代码示例来源:origin: org.apache.activemq/artemis-proton-plug
source.setAddress(queue);
source.setDurable(TerminusDurability.UNSETTLED_STATE);
source.setExpiryPolicy(TerminusExpiryPolicy.NEVER);
source.setDistributionMode(COPY);
source.setCapabilities(TOPIC);
代码示例来源:origin: apache/activemq-artemis
source.setAddress(queue.toString());
source.setDurable(TerminusDurability.UNSETTLED_STATE);
source.setExpiryPolicy(TerminusExpiryPolicy.NEVER);
source.setDistributionMode(COPY);
source.setCapabilities(TOPIC);
代码示例来源:origin: org.apache.activemq/artemis-amqp-protocol
source.setAddress(queue.toString());
source.setDurable(TerminusDurability.UNSETTLED_STATE);
source.setExpiryPolicy(TerminusExpiryPolicy.NEVER);
source.setDistributionMode(COPY);
source.setCapabilities(TOPIC);
代码示例来源:origin: apache/activemq-artemis
source.setFilter(filters);
source.setDurable(TerminusDurability.NONE);
source.setExpiryPolicy(TerminusExpiryPolicy.LINK_DETACH);
代码示例来源:origin: com.ibm.mqlight/mqlight-api
source.setExpiryPolicy(TerminusExpiryPolicy.LINK_DETACH);
source.setTimeout(UnsignedInteger.valueOf(sr.ttl));
target.setExpiryPolicy(TerminusExpiryPolicy.LINK_DETACH);
t.setExpiryPolicy(TerminusExpiryPolicy.LINK_DETACH);
t.setTimeout(new UnsignedInteger(0));
s.setExpiryPolicy(TerminusExpiryPolicy.LINK_DETACH);
s.setTimeout(new UnsignedInteger(0));
sd.receiver.close();
代码示例来源:origin: apache/activemq-artemis
source.setFilter(filters);
source.setDurable(TerminusDurability.NONE);
source.setExpiryPolicy(TerminusExpiryPolicy.LINK_DETACH);
内容来源于网络,如有侵权,请联系作者删除!