Package org.apache.activemq.partition
Class PartitionBrokerPlugin
- java.lang.Object
-
- org.apache.activemq.partition.PartitionBrokerPlugin
-
- All Implemented Interfaces:
BrokerPlugin
- Direct Known Subclasses:
ZooKeeperPartitionBrokerPlugin
public class PartitionBrokerPlugin extends Object implements BrokerPlugin
A BrokerPlugin which partitions client connections over a cluster of brokers.
-
-
Field Summary
Fields Modifier and Type Field Description protected Partitioningconfigprotected intminTransferCount
-
Constructor Summary
Constructors Constructor Description PartitionBrokerPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBrokerURL(PartitionBroker partitionBroker, String id)PartitioninggetConfig()intgetMinTransferCount()BrokerinstallPlugin(Broker broker)Installs the plugin into the interceptor chain of the broker, returning the new intercepted broker to use.voidsetConfig(Partitioning config)voidsetConfigAsJson(String config)voidsetMinTransferCount(int minTransferCount)
-
-
-
Field Detail
-
minTransferCount
protected int minTransferCount
-
config
protected Partitioning config
-
-
Method Detail
-
installPlugin
public Broker installPlugin(Broker broker) throws Exception
Description copied from interface:BrokerPluginInstalls the plugin into the interceptor chain of the broker, returning the new intercepted broker to use.- Specified by:
installPluginin interfaceBrokerPlugin- Throws:
Exception
-
getMinTransferCount
public int getMinTransferCount()
-
setMinTransferCount
public void setMinTransferCount(int minTransferCount)
-
getConfig
public Partitioning getConfig()
-
setConfig
public void setConfig(Partitioning config)
-
setConfigAsJson
public void setConfigAsJson(String config) throws IOException
- Throws:
IOException
-
getBrokerURL
public String getBrokerURL(PartitionBroker partitionBroker, String id)
-
-