Package org.jpos.q2.iso
Class MultiSessionChannelAdaptor
- java.lang.Object
-
- org.jpos.q2.QBeanSupport
-
- org.jpos.q2.iso.ChannelAdaptor
-
- org.jpos.q2.iso.MultiSessionChannelAdaptor
-
- All Implemented Interfaces:
Configurable
,ExceptionHandlerConfigAware
,Channel
,ChannelAdaptorMBean
,MultiSessionChannelAdaptorMBean
,QBean
,QBeanSupportMBean
,QPersist
,Loggeable
public class MultiSessionChannelAdaptor extends ChannelAdaptor implements MultiSessionChannelAdaptorMBean, Channel, Loggeable
- Since:
- 1.8.5
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
MultiSessionChannelAdaptor.Receiver
class
MultiSessionChannelAdaptor.Sender
-
Field Summary
-
Fields inherited from class org.jpos.q2.iso.ChannelAdaptor
sp
-
Fields inherited from class org.jpos.q2.QBeanSupport
cfg, log, scheduledThreadPoolExecutor
-
-
Constructor Summary
Constructors Constructor Description MultiSessionChannelAdaptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getSessions()
void
initService()
protected void
initSpaceAndQueues()
void
setSessions(int sessions)
void
startService()
-
Methods inherited from class org.jpos.q2.iso.ChannelAdaptor
addFilters, append, checkConnection, destroyService, disconnect, dump, getConnectsCounter, getCountersAsString, getHost, getIdleTimeInMillis, getInQueue, getLastTxnTimestampInMillis, getOutQueue, getPort, getReconnectDelay, getRXCounter, getSocketFactory, getTXCounter, grabSpace, initChannel, isConnected, newChannel, receive, receive, resetCounters, send, send, setHost, setInQueue, setOutQueue, setPort, setReconnectDelay, setSocketFactory, stopService
-
Methods inherited from class org.jpos.q2.QBeanSupport
addAttr, close, createElement, destroy, getAttrs, getAttrs, getConfiguration, getDump, getFactory, getLoader, getLoaderURLS, getLog, getLogger, getName, getPersist, getProperties, getProperty, getRealm, getScheduledThreadPoolExecutor, getServer, getState, getStateAsString, init, isModified, running, setAttr, setConfiguration, setLogger, setModified, setName, setPersist, setProperty, setRealm, setServer, setState, start, stop
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jpos.q2.iso.ChannelAdaptorMBean
getConnectsCounter, getCountersAsString, getHost, getIdleTimeInMillis, getInQueue, getLastTxnTimestampInMillis, getOutQueue, getPort, getReconnectDelay, getRXCounter, getSocketFactory, getTXCounter, isConnected, resetCounters, setHost, setInQueue, setOutQueue, setPort, setReconnectDelay, setSocketFactory
-
Methods inherited from interface org.jpos.core.handlers.exception.ExceptionHandlerConfigAware
addExceptionHandlers
-
Methods inherited from interface org.jpos.q2.QBean
destroy, getState, getStateAsString, init, start, stop
-
Methods inherited from interface org.jpos.q2.QBeanSupportMBean
getDump, getLoader, getLoaderURLS, getLogger, getName, getRealm, getServer, setLogger, setName, setPersist, setRealm, setServer
-
Methods inherited from interface org.jpos.q2.QPersist
getPersist, isModified
-
-
-
-
Constructor Detail
-
MultiSessionChannelAdaptor
public MultiSessionChannelAdaptor()
-
-
Method Detail
-
initService
public void initService() throws ConfigurationException
- Overrides:
initService
in classChannelAdaptor
- Throws:
ConfigurationException
-
startService
public void startService()
- Overrides:
startService
in classChannelAdaptor
-
getSessions
public int getSessions()
- Specified by:
getSessions
in interfaceMultiSessionChannelAdaptorMBean
-
setSessions
public void setSessions(int sessions)
- Specified by:
setSessions
in interfaceMultiSessionChannelAdaptorMBean
-
initSpaceAndQueues
protected void initSpaceAndQueues() throws ConfigurationException
- Overrides:
initSpaceAndQueues
in classChannelAdaptor
- Throws:
ConfigurationException
-
-