org.jpos.q2.iso
Class MUXPool
java.lang.Object
org.jpos.q2.QBeanSupport
org.jpos.q2.iso.MUXPool
- All Implemented Interfaces:
- Configurable, MUX, QBean, QBeanSupportMBean, QPersist
public class MUXPool
- extends QBeanSupport
- implements MUX
- Author:
- apr
| Methods inherited from class org.jpos.q2.QBeanSupport |
destroy, getConfiguration, getFactory, getLoader, getLoaderURLS, getLog, getLogger, getName, getPersist, getRealm, getServer, getState, getStateAsString, init, isModified, running, setConfiguration, setLogger, setModified, setName, setPersist, setRealm, setServer, setState, shutdownQ2, start, stop |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ROUND_ROBIN
public static final int ROUND_ROBIN
- See Also:
- Constant Field Values
PRIMARY_SECONDARY
public static final int PRIMARY_SECONDARY
- See Also:
- Constant Field Values
MUXPool
public MUXPool()
initService
public void initService()
throws ConfigurationException
- Throws:
ConfigurationException
stopService
public void stopService()
request
public ISOMsg request(ISOMsg m,
long timeout)
throws ISOException
- Specified by:
request in interface MUX
- Parameters:
m - message to sendtimeout - time to wait for a message
- Returns:
- received message or null
- Throws:
ISOException
isConnected
public boolean isConnected()
- Specified by:
isConnected in interface MUX
- Returns:
- true if connected
request
public void request(ISOMsg m,
long timeout,
ISOResponseListener r,
java.lang.Object handBack)
throws ISOException
- Specified by:
request in interface MUX
- Throws:
ISOException