com.liferay.portal.kernel.nio.intraband.test
Class MockIntraband
java.lang.Object
com.liferay.portal.kernel.nio.intraband.BaseIntraband
com.liferay.portal.kernel.nio.intraband.test.MockIntraband
- All Implemented Interfaces:
- com.liferay.portal.kernel.nio.intraband.Intraband
public class MockIntraband
- extends com.liferay.portal.kernel.nio.intraband.BaseIntraband
| Nested classes/interfaces inherited from class com.liferay.portal.kernel.nio.intraband.BaseIntraband |
com.liferay.portal.kernel.nio.intraband.BaseIntraband.SendSyncDatagramCompletionHandler |
| Fields inherited from class com.liferay.portal.kernel.nio.intraband.BaseIntraband |
datagramReceiveHandlersReference, defaultTimeout, open, REPLIED_ENUM_SET, responseWaitingMap, sequenceIdGenerator, timeoutMap |
| Methods inherited from class com.liferay.portal.kernel.nio.intraband.BaseIntraband |
addResponseWaitingDatagram, cleanUpTimeoutResponseWaitingDatagrams, close, doSendSyncDatagram, ensureOpen, generateSequenceId, getDatagramReceiveHandlers, handleReading, handleWriting, isOpen, registerDatagramReceiveHandler, removeResponseWaitingDatagram, sendDatagram, sendDatagram, sendDatagram, sendSyncDatagram, sendSyncDatagram, unregisterDatagramReceiveHandler |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockIntraband
public MockIntraband()
MockIntraband
public MockIntraband(long defaultTimeout)
getDatagram
public com.liferay.portal.kernel.nio.intraband.Datagram getDatagram()
getRegistrationReference
public com.liferay.portal.kernel.nio.intraband.RegistrationReference getRegistrationReference()
registerChannel
public com.liferay.portal.kernel.nio.intraband.RegistrationReference registerChannel(Channel duplexChannel)
registerChannel
public com.liferay.portal.kernel.nio.intraband.RegistrationReference registerChannel(ScatteringByteChannel scatteringByteChannel,
GatheringByteChannel gatheringByteChannel)
setIOException
public void setIOException(IOException ioException)
doSendDatagram
protected void doSendDatagram(com.liferay.portal.kernel.nio.intraband.RegistrationReference registrationReference,
com.liferay.portal.kernel.nio.intraband.Datagram datagram)
- Specified by:
doSendDatagram in class com.liferay.portal.kernel.nio.intraband.BaseIntraband
processDatagram
protected com.liferay.portal.kernel.nio.intraband.Datagram processDatagram(com.liferay.portal.kernel.nio.intraband.Datagram datagram)