Package tigase.cluster
Class ClusterConnectionSelector
java.lang.Object
tigase.cluster.ClusterConnectionSelector
- All Implemented Interfaces:
ClusterConnectionSelectorIfc
@Bean(name="clusterConnectionSelector",
parent=ClusterConnectionManager.class,
active=true)
public class ClusterConnectionSelector
extends Object
implements ClusterConnectionSelectorIfc
Advanced implementation of ClusterConnectionSelectorIfc which separates packets with priority CLUSTER or higher from
other packets in cluster connections by using separate connections for them
- Author:
- andrzej
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionselectConnection
(Packet p, ClusterConnection conn) Method returns XMPPIOService instances which should be used to send packet between cluster nodesvoid
void
setProperties
(Map<String, Object> props)
-
Field Details
-
CLUSTER_SYS_CONNECTIONS_PER_NODE_PROP_KEY
- See Also:
-
-
Constructor Details
-
ClusterConnectionSelector
public ClusterConnectionSelector()
-
-
Method Details
-
selectConnection
Description copied from interface:ClusterConnectionSelectorIfc
Method returns XMPPIOService instances which should be used to send packet between cluster nodes- Specified by:
selectConnection
in interfaceClusterConnectionSelectorIfc
-
setClusterConnectionHandler
- Specified by:
setClusterConnectionHandler
in interfaceClusterConnectionSelectorIfc
-
setProperties
- Specified by:
setProperties
in interfaceClusterConnectionSelectorIfc
-