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:
- Intraband
public class MockIntraband
- extends BaseIntraband
| 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 Datagram getDatagram()
getRegistrationReference
public RegistrationReference getRegistrationReference()
registerChannel
public RegistrationReference registerChannel(Channel duplexChannel)
registerChannel
public RegistrationReference registerChannel(ScatteringByteChannel scatteringByteChannel,
GatheringByteChannel gatheringByteChannel)
setIOException
public void setIOException(IOException ioException)
doSendDatagram
protected void doSendDatagram(RegistrationReference registrationReference,
Datagram datagram)
- Specified by:
doSendDatagram in class BaseIntraband
processDatagram
protected Datagram processDatagram(Datagram datagram)