public class OneShotChannelAdaptor extends QBeanSupport implements OneShotChannelAdaptorMBean, Channel
Example qbean:
<client class="org.jpos.q2.iso.OneShotChannelAdaptor" logger="Q2" name="channel-adaptor">Modifier and Type | Class and Description |
---|---|
class |
OneShotChannelAdaptor.Worker |
cfg, log, scheduledThreadPoolExecutor
Constructor and Description |
---|
OneShotChannelAdaptor() |
Modifier and Type | Method and Description |
---|---|
void |
destroyService() |
java.lang.String |
getHost() |
java.lang.String |
getInQueue() |
java.lang.String |
getOutQueue() |
int |
getPort() |
java.lang.String |
getSocketFactory() |
void |
initAdaptor() |
ISOMsg |
receive()
Receive message
|
ISOMsg |
receive(long timeout)
Receive message
|
void |
send(ISOMsg m)
Queue a message to be transmitted by this adaptor
|
void |
send(ISOMsg m,
long timeout)
Queue a message to be transmitted by this adaptor
|
void |
setHost(java.lang.String host) |
void |
setInQueue(java.lang.String in) |
void |
setOutQueue(java.lang.String out) |
void |
setPort(int port) |
void |
setSocketFactory(java.lang.String sFac) |
void |
startService() |
void |
stopService() |
addAttr, close, createElement, destroy, getAttrs, getAttrs, getConfiguration, getDump, getFactory, getLoader, getLoaderURLS, getLog, getLogger, getName, getPersist, getProperties, getProperty, getRealm, getScheduledThreadPoolExecutor, getServer, getState, getStateAsString, init, initService, isModified, running, setAttr, setConfiguration, setLogger, setModified, setName, setPersist, setProperty, setRealm, setServer, setState, start, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDump, getLoader, getLoaderURLS, getLogger, getName, getRealm, getServer, setLogger, setName, setPersist, setRealm, setServer
destroy, getState, getStateAsString, init, start, stop
getPersist, isModified
public void initAdaptor()
public void startService()
startService
in class QBeanSupport
public void stopService()
stopService
in class QBeanSupport
public void destroyService()
destroyService
in class QBeanSupport
public void send(ISOMsg m)
public void send(ISOMsg m, long timeout)
m
- message to sendtimeout
- in millispublic ISOMsg receive()
public ISOMsg receive(long timeout)
public void setInQueue(java.lang.String in)
setInQueue
in interface OneShotChannelAdaptorMBean
public java.lang.String getInQueue()
getInQueue
in interface OneShotChannelAdaptorMBean
public void setOutQueue(java.lang.String out)
setOutQueue
in interface OneShotChannelAdaptorMBean
public java.lang.String getOutQueue()
getOutQueue
in interface OneShotChannelAdaptorMBean
public void setHost(java.lang.String host)
setHost
in interface OneShotChannelAdaptorMBean
public java.lang.String getHost()
getHost
in interface OneShotChannelAdaptorMBean
public void setPort(int port)
setPort
in interface OneShotChannelAdaptorMBean
public int getPort()
getPort
in interface OneShotChannelAdaptorMBean
public void setSocketFactory(java.lang.String sFac)
setSocketFactory
in interface OneShotChannelAdaptorMBean
public java.lang.String getSocketFactory()
getSocketFactory
in interface OneShotChannelAdaptorMBean