Package org.apache.activemq.network
Class NetworkBridgeConfiguration
java.lang.Object
org.apache.activemq.network.NetworkBridgeConfiguration
- Direct Known Subclasses:
NetworkConnector
Configuration for a NetworkBridge
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintintintList<org.apache.activemq.command.ActiveMQDestination>List<org.apache.activemq.command.ActiveMQDestination>longintgetName()intintorg.apache.activemq.broker.SslContextList<org.apache.activemq.command.ActiveMQDestination>booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanisDuplex()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidsetAdvisoryAckPercentage(int advisoryAckPercentage) voidsetAdvisoryForFailedForward(boolean advisoryForFailedForward) voidsetAdvisoryPrefetchSize(int advisoryPrefetchSize) Prefetch size for advisory consumers.voidsetAlwaysSyncSend(boolean alwaysSyncSend) voidsetBridgeFactory(BridgeFactory bridgeFactory) voidsetBridgeTempDestinations(boolean bridgeTempDestinations) voidsetBrokerName(String brokerName) voidsetBrokerURL(String brokerURL) voidsetCheckDuplicateMessagesOnDuplex(boolean checkDuplicateMessagesOnDuplex) voidsetClientIdToken(String clientIdToken) voidsetConduitNetworkQueueSubscriptions(boolean conduitNetworkQueueSubscriptions) voidsetConduitSubscriptions(boolean conduitSubscriptions) voidsetConsumerPriorityBase(int consumerPriorityBase) voidsetConsumerTTL(int consumerTTL) voidsetDecreaseNetworkConsumerPriority(boolean decreaseNetworkConsumerPriority) voidsetDestinationFilter(String destinationFilter) voidsetDispatchAsync(boolean dispatchAsync) voidsetDuplex(boolean duplex) voidsetDynamicallyIncludedDestinations(List<org.apache.activemq.command.ActiveMQDestination> dynamicallyIncludedDestinations) voidsetDynamicOnly(boolean dynamicOnly) voidsetExcludedDestinations(List<org.apache.activemq.command.ActiveMQDestination> excludedDestinations) voidsetGcDestinationViews(boolean gcDestinationViews) voidsetGcSweepTime(long gcSweepTime) voidsetMessageTTL(int messageTTL) voidvoidsetNetworkTTL(int networkTTL) voidsetPassword(String password) voidsetPrefetchSize(int prefetchSize) voidsetRemotePassword(String remotePassword) voidsetRemoteUserName(String remoteUserName) voidsetSslContext(org.apache.activemq.broker.SslContext sslContext) voidsetStaticallyIncludedDestinations(List<org.apache.activemq.command.ActiveMQDestination> staticallyIncludedDestinations) voidsetStaticBridge(boolean staticBridge) voidsetSuppressDuplicateQueueSubscriptions(boolean val) voidsetSuppressDuplicateTopicSubscriptions(boolean val) voidsetSyncDurableSubs(boolean syncDurableSubs) voidsetUseBrokerNameAsIdSees(boolean val) voidsetUseCompression(boolean useCompression) voidsetUserName(String userName) voidsetUseVirtualDestSubs(boolean useVirtualDestSubs)
-
Field Details
-
excludedDestinations
-
dynamicallyIncludedDestinations
-
staticallyIncludedDestinations
-
-
Constructor Details
-
NetworkBridgeConfiguration
public NetworkBridgeConfiguration()
-
-
Method Details
-
isConduitSubscriptions
public boolean isConduitSubscriptions()- Returns:
- the conduitSubscriptions
-
setConduitSubscriptions
public void setConduitSubscriptions(boolean conduitSubscriptions) - Parameters:
conduitSubscriptions- the conduitSubscriptions to set
-
isConduitNetworkQueueSubscriptions
public boolean isConduitNetworkQueueSubscriptions() -
setConduitNetworkQueueSubscriptions
public void setConduitNetworkQueueSubscriptions(boolean conduitNetworkQueueSubscriptions) -
isDynamicOnly
public boolean isDynamicOnly()- Returns:
- the dynamicOnly
-
setDynamicOnly
public void setDynamicOnly(boolean dynamicOnly) - Parameters:
dynamicOnly- the dynamicOnly to set
-
isSyncDurableSubs
public boolean isSyncDurableSubs() -
setSyncDurableSubs
public void setSyncDurableSubs(boolean syncDurableSubs) -
isBridgeTempDestinations
public boolean isBridgeTempDestinations()- Returns:
- the bridgeTempDestinations
-
setBridgeTempDestinations
public void setBridgeTempDestinations(boolean bridgeTempDestinations) - Parameters:
bridgeTempDestinations- the bridgeTempDestinations to set
-
isDecreaseNetworkConsumerPriority
public boolean isDecreaseNetworkConsumerPriority()- Returns:
- the decreaseNetworkConsumerPriority
-
setDecreaseNetworkConsumerPriority
public void setDecreaseNetworkConsumerPriority(boolean decreaseNetworkConsumerPriority) - Parameters:
decreaseNetworkConsumerPriority- the decreaseNetworkConsumerPriority to set
-
isDispatchAsync
public boolean isDispatchAsync()- Returns:
- the dispatchAsync
-
setDispatchAsync
public void setDispatchAsync(boolean dispatchAsync) - Parameters:
dispatchAsync- the dispatchAsync to set
-
isDuplex
public boolean isDuplex()- Returns:
- the duplex
-
setDuplex
public void setDuplex(boolean duplex) - Parameters:
duplex- the duplex to set
-
getBrokerName
- Returns:
- the brokerName
-
setBrokerName
- Parameters:
brokerName- the localBrokerName to set
-
getClientIdToken
-
setClientIdToken
-
getNetworkTTL
public int getNetworkTTL()- Returns:
- the networkTTL
-
setNetworkTTL
public void setNetworkTTL(int networkTTL) - Parameters:
networkTTL- the networkTTL to set
-
getPassword
- Returns:
- the password
-
setPassword
- Parameters:
password- the password to set
-
getPrefetchSize
public int getPrefetchSize()- Returns:
- the prefetchSize
-
setPrefetchSize
public void setPrefetchSize(int prefetchSize) - Parameters:
prefetchSize- the prefetchSize to set
-
getAdvisoryPrefetchSize
public int getAdvisoryPrefetchSize() -
setAdvisoryPrefetchSize
public void setAdvisoryPrefetchSize(int advisoryPrefetchSize) Prefetch size for advisory consumers. Just like prefetchSize, if set, this value must be greater than 0 because network consumers do not poll for messages. Setting this to 0 or less means this value is disabled and prefetchSize will be used instead.- Parameters:
advisoryPrefetchSize-
-
getAdvisoryAckPercentage
public int getAdvisoryAckPercentage() -
setAdvisoryAckPercentage
public void setAdvisoryAckPercentage(int advisoryAckPercentage) - Parameters:
advisoryAckPercentage- the percentage of the advisory prefetch size value that can be dispatched before an ack will be sent, defaults to 75 which means that when the number of received messages is greater than 75% of the prefetch size an ack will be sent back
-
getUserName
- Returns:
- the userName
-
setUserName
- Parameters:
userName- the userName to set
-
getRemoteUserName
- Returns:
- the remoteUserName
-
setRemoteUserName
- Parameters:
remoteUserName- the remoteUserName to set
-
getRemotePassword
- Returns:
- the remotePassword
-
setRemotePassword
- Parameters:
userName- the userName to set
-
getDestinationFilter
- Returns:
- the destinationFilter
-
setDestinationFilter
- Parameters:
destinationFilter- the destinationFilter to set
-
getName
- Returns:
- the name
-
setName
- Parameters:
name- the name to set
-
getExcludedDestinations
-
setExcludedDestinations
public void setExcludedDestinations(List<org.apache.activemq.command.ActiveMQDestination> excludedDestinations) -
getDynamicallyIncludedDestinations
-
setDynamicallyIncludedDestinations
public void setDynamicallyIncludedDestinations(List<org.apache.activemq.command.ActiveMQDestination> dynamicallyIncludedDestinations) -
getStaticallyIncludedDestinations
-
setStaticallyIncludedDestinations
public void setStaticallyIncludedDestinations(List<org.apache.activemq.command.ActiveMQDestination> staticallyIncludedDestinations) -
isSuppressDuplicateQueueSubscriptions
public boolean isSuppressDuplicateQueueSubscriptions() -
setSuppressDuplicateQueueSubscriptions
public void setSuppressDuplicateQueueSubscriptions(boolean val) - Parameters:
val- if true, duplicate network queue subscriptions (in a cyclic network) will be suppressed
-
isSuppressDuplicateTopicSubscriptions
public boolean isSuppressDuplicateTopicSubscriptions() -
setSuppressDuplicateTopicSubscriptions
public void setSuppressDuplicateTopicSubscriptions(boolean val) - Parameters:
val- if true, duplicate network topic subscriptions (in a cyclic network) will be suppressed
-
getBrokerURL
- Returns:
- the brokerURL
-
setBrokerURL
- Parameters:
brokerURL- the brokerURL to set
-
isAlwaysSyncSend
public boolean isAlwaysSyncSend() -
setAlwaysSyncSend
public void setAlwaysSyncSend(boolean alwaysSyncSend) - Parameters:
alwaysSyncSend- when true, both persistent and non persistent messages will be sent using a request. When false, non persistent messages are acked once the oneway send succeeds, which can potentially lead to message loss. Using an async request, allows multiple outstanding requests. This ensures that a bridge need not block all sending when the remote broker needs to flow control a single destination.
-
getConsumerPriorityBase
public int getConsumerPriorityBase() -
setConsumerPriorityBase
public void setConsumerPriorityBase(int consumerPriorityBase) - Parameters:
consumerPriorityBase- , default -5. Sets the starting priority for consumers. This base value will be decremented by the length of the broker path when decreaseNetworkConsumerPriority is set.
-
isStaticBridge
public boolean isStaticBridge() -
setStaticBridge
public void setStaticBridge(boolean staticBridge) -
setUseCompression
public void setUseCompression(boolean useCompression) - Parameters:
useCompression- True if the Network should enforce compression for messages sent.
-
isUseCompression
public boolean isUseCompression()- Returns:
- the useCompression setting, true if message will be compressed on send.
-
isAdvisoryForFailedForward
public boolean isAdvisoryForFailedForward() -
setAdvisoryForFailedForward
public void setAdvisoryForFailedForward(boolean advisoryForFailedForward) -
setConsumerTTL
public void setConsumerTTL(int consumerTTL) -
getConsumerTTL
public int getConsumerTTL() -
setMessageTTL
public void setMessageTTL(int messageTTL) -
getMessageTTL
public int getMessageTTL() -
isUseBrokerNamesAsIdSeed
public boolean isUseBrokerNamesAsIdSeed() -
setUseBrokerNameAsIdSees
public void setUseBrokerNameAsIdSees(boolean val) -
isGcDestinationViews
public boolean isGcDestinationViews() -
setGcDestinationViews
public void setGcDestinationViews(boolean gcDestinationViews) -
getGcSweepTime
public long getGcSweepTime() -
setGcSweepTime
public void setGcSweepTime(long gcSweepTime) -
isCheckDuplicateMessagesOnDuplex
public boolean isCheckDuplicateMessagesOnDuplex() -
setCheckDuplicateMessagesOnDuplex
public void setCheckDuplicateMessagesOnDuplex(boolean checkDuplicateMessagesOnDuplex) -
isUseVirtualDestSubs
public boolean isUseVirtualDestSubs() -
getBridgeFactory
-
setBridgeFactory
-
setUseVirtualDestSubs
public void setUseVirtualDestSubs(boolean useVirtualDestSubs) -
setSslContext
public void setSslContext(org.apache.activemq.broker.SslContext sslContext) -
getSslContext
public org.apache.activemq.broker.SslContext getSslContext()
-