Class QMUXProxy
java.lang.Object
org.jpos.q2.iso.QMUXProxy
- All Implemented Interfaces:
Remote, Configurable, RemoteQMUX
RMI QMUX Proxy
- Since:
- 1.4.9
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether the underlying MUX is currently connected.Sendsmand blocks for up totimeoutms waiting for a matching response.voidrequest(ISOMsg m, long timeout, ISOResponseListener rl, Object handBack) Sendsmasynchronously, dispatching the response (or expiration) tor.voidConfigures this object with the suppliedConfiguration.
-
Constructor Details
-
QMUXProxy
Constructs an RMI-exported proxy for the given QMUX.- Parameters:
qmux- underlying MUX exposed over RMI- Throws:
RemoteException- if RMI export fails
-
-
Method Details
-
isConnected
Description copied from interface:RemoteQMUXIndicates whether the underlying MUX is currently connected.- Specified by:
isConnectedin interfaceRemoteQMUX- Returns:
- true if connected
-
request
Description copied from interface:RemoteQMUXSendsmand blocks for up totimeoutms waiting for a matching response.- Specified by:
requestin interfaceRemoteQMUX- Parameters:
m- message to sendtimeout- time to wait for a message- Returns:
- received message or null
- Throws:
ISOException- on pack/unpack error
-
request
public void request(ISOMsg m, long timeout, ISOResponseListener rl, Object handBack) throws ISOException Description copied from interface:RemoteQMUXSendsmasynchronously, dispatching the response (or expiration) tor.- Specified by:
requestin interfaceRemoteQMUX- Parameters:
m- message to sendtimeout- time to wait for a responserl- response listener notified on success or expirationhandBack- opaque token relayed back tor- Throws:
ISOException- on pack/unpack error
-
setConfiguration
Description copied from interface:ConfigurableConfigures this object with the suppliedConfiguration.- Specified by:
setConfigurationin interfaceConfigurable- Parameters:
cfg- Configuration object- Throws:
ConfigurationException- if the configuration is invalid
-