Class Connector
java.lang.Object
org.jpos.iso.Connector
- All Implemented Interfaces:
Configurable, ISORequestListener, LogSource
Connector implements ISORequestListener
and forward all incoming messages to a given
destination MUX, or Channel handling back responses
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classRunnable that processes a single incoming message through the MUX. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringName of the channel to look up.protected StringName of the QMUX to look up.protected static ThreadPoolShared thread pool for processing incoming messages.protected intResponse timeout in milliseconds (0 = no timeout). -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
muxName
-
channelName
Name of the channel to look up. -
timeout
Response timeout in milliseconds (0 = no timeout). -
pool
Shared thread pool for processing incoming messages.
-
-
Constructor Details
-
Connector
public Connector()Default constructor.
-
-
Method Details
-
setLogger
-
getRealm
-
getLogger
-
setConfiguration
Destination can be a Channel or a MUX. If Destination is a Channel then timeout applies (used on ISORequest to get a Response).- destination-mux
- destination-channel
- timeout
- poolsize
- Specified by:
setConfigurationin interfaceConfigurable- Parameters:
cfg- Configuration- Throws:
ConfigurationException- if the configuration is invalid
-
process
Description copied from interface:ISORequestListenerCalled when an unmatched request is received. Processes an unmatched ISO request.- Specified by:
processin interfaceISORequestListener- Parameters:
source- source where you optionally can replym- the unmatched request- Returns:
- true if request was handled by this listener
-