public class MUXPool extends QBeanSupport implements MUX, MUXPoolMBean
| Modifier and Type | Class and Description | 
|---|---|
static interface  | 
MUXPool.StrategyHandler
A class implementing this interface can be added to a  
MUXPool to override the classical built-in strategies.It could be added to a MUXPool like this: | 
| Modifier and Type | Field and Description | 
|---|---|
static int | 
PRIMARY_SECONDARY  | 
static int | 
ROUND_ROBIN  | 
static int | 
ROUND_ROBIN_WITH_OVERRIDE  | 
static int | 
SPLIT_BY_DIVISOR  | 
cfg, log, scheduledThreadPoolExecutor| Constructor and Description | 
|---|
MUXPool()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected MUX | 
firstAvailableMUX(long maxWait)  | 
java.lang.String[] | 
getMuxNames()  | 
int | 
getStrategy()  | 
MUXPool.StrategyHandler | 
getStrategyHandler()  | 
protected void | 
initHandler(org.jdom2.Element e)  | 
void | 
initService()  | 
boolean | 
isConnected()  | 
protected MUX | 
nextAvailableMUX(int mnumber,
                long maxWait)  | 
ISOMsg | 
request(ISOMsg m,
       long timeout)
Sends a message to remote host and wait for response 
 | 
void | 
request(ISOMsg m,
       long timeout,
       ISOResponseListener r,
       java.lang.Object handBack)
Sends a message to remote host in async way 
 | 
void | 
send(ISOMsg m)
sends (or hands back) an ISOMsg 
 | 
void | 
stopService()  | 
addAttr, close, createElement, destroy, destroyService, getAttrs, getAttrs, getConfiguration, getDump, getFactory, getLoader, getLoaderURLS, getLog, getLogger, getName, getPersist, getProperties, getProperty, getRealm, getScheduledThreadPoolExecutor, getServer, getState, getStateAsString, init, isModified, running, setAttr, setConfiguration, setLogger, setModified, setName, setPersist, setProperty, setRealm, setServer, setState, start, startService, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDump, getLoader, getLoaderURLS, getLogger, getName, getRealm, getServer, setLogger, setName, setPersist, setRealm, setServerdestroy, getState, getStateAsString, init, start, stopgetPersist, isModifiedpublic static final int PRIMARY_SECONDARY
public static final int ROUND_ROBIN
public static final int ROUND_ROBIN_WITH_OVERRIDE
public static final int SPLIT_BY_DIVISOR
public void initService()
                 throws ConfigurationException
initService in class QBeanSupportConfigurationExceptionpublic void stopService()
stopService in class QBeanSupportprotected void initHandler(org.jdom2.Element e)
                    throws ConfigurationException
ConfigurationExceptionpublic ISOMsg request(ISOMsg m, long timeout) throws ISOException
MUXrequest in interface MUXm - message to sendtimeout - time to wait for a messageISOExceptionpublic void request(ISOMsg m, long timeout, ISOResponseListener r, java.lang.Object handBack) throws ISOException
MUXrequest in interface MUXm - message to sendtimeout - time to wait for the responser - reference to response listenerhandBack - optional handback to be given to reponse listenerISOExceptionpublic void send(ISOMsg m) throws ISOException, java.io.IOException
ISOSourcesend in interface ISOSourcem - the Message to be sentISOExceptionjava.io.IOExceptionprotected MUX firstAvailableMUX(long maxWait)
protected MUX nextAvailableMUX(int mnumber, long maxWait)
public java.lang.String[] getMuxNames()
getMuxNames in interface MUXPoolMBeanpublic int getStrategy()
getStrategy in interface MUXPoolMBeanpublic MUXPool.StrategyHandler getStrategyHandler()
public boolean isConnected()
isConnected in interface ISOSource