jPOS 1.6.1 API Documentation

org.jpos.q2.iso
Class MUXPool

java.lang.Object
  extended by org.jpos.q2.QBeanSupport
      extended by org.jpos.q2.iso.MUXPool
All Implemented Interfaces:
Configurable, MUX, QBean, QBeanSupportMBean, QPersist

public class MUXPool
extends QBeanSupport
implements MUX

Author:
apr

Field Summary
static int PRIMARY_SECONDARY
           
static int ROUND_ROBIN
           
 
Fields inherited from class org.jpos.q2.QBeanSupport
stateString
 
Fields inherited from interface org.jpos.q2.QBean
DESTROYED, FAILED, STARTED, STARTING, STOPPED, STOPPING
 
Constructor Summary
MUXPool()
           
 
Method Summary
 void initService()
           
 boolean isConnected()
           
 ISOMsg request(ISOMsg m, long timeout)
           
 void request(ISOMsg m, long timeout, ISOResponseListener r, java.lang.Object handBack)
           
 void stopService()
           
 
Methods inherited from class org.jpos.q2.QBeanSupport
destroy, getConfiguration, getFactory, getLoader, getLoaderURLS, getLog, getLogger, getName, getPersist, getServer, getState, getStateAsString, init, isModified, running, setConfiguration, setLogger, setModified, setName, setPersist, setServer, setState, shutdownQ2, start, stop
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

MUXPool

public MUXPool()
Method Detail

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 send
timeout - 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

jPOS.org