public class MUXPool extends QBeanSupport implements MUX, MUXPoolMBean
| 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() |
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 ROUND_ROBIN
public static final int PRIMARY_SECONDARY
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 QBeanSupportpublic ISOMsg request(ISOMsg m, long timeout) throws ISOException
MUXrequest in interface MUXm - message to sendtimeout - time to wait for a messageISOExceptionpublic void send(ISOMsg m) throws ISOException, java.io.IOException
ISOSourcesend in interface ISOSourcem - the Message to be sentISOExceptionjava.io.IOExceptionpublic boolean isConnected()
isConnected in interface ISOSourceprotected MUX firstAvailableMUX(long maxWait)
protected MUX nextAvailableMUX(int mnumber, long maxWait)
public 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 java.lang.String[] getMuxNames()
getMuxNames in interface MUXPoolMBeanpublic int getStrategy()
getStrategy in interface MUXPoolMBean