Liferay 7.0-ce-b4

com.liferay.portal.kernel.nio.intraband.test
Class MockIntraband

java.lang.Object
  extended by com.liferay.portal.kernel.nio.intraband.BaseIntraband
      extended by com.liferay.portal.kernel.nio.intraband.test.MockIntraband
All Implemented Interfaces:
Intraband

public class MockIntraband
extends BaseIntraband


Nested Class Summary
 
Nested classes/interfaces inherited from class com.liferay.portal.kernel.nio.intraband.BaseIntraband
BaseIntraband.SendSyncDatagramCompletionHandler
 
Field Summary
 
Fields inherited from class com.liferay.portal.kernel.nio.intraband.BaseIntraband
datagramReceiveHandlersReference, defaultTimeout, open, REPLIED_ENUM_SET, responseWaitingMap, sequenceIdGenerator, timeoutMap
 
Constructor Summary
MockIntraband()
           
MockIntraband(long defaultTimeout)
           
 
Method Summary
protected  void doSendDatagram(RegistrationReference registrationReference, Datagram datagram)
           
 Datagram getDatagram()
           
 RegistrationReference getRegistrationReference()
           
protected  Datagram processDatagram(Datagram datagram)
           
 RegistrationReference registerChannel(Channel duplexChannel)
           
 RegistrationReference registerChannel(ScatteringByteChannel scatteringByteChannel, GatheringByteChannel gatheringByteChannel)
           
 void setIOException(IOException ioException)
           
 
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
 

Constructor Detail

MockIntraband

public MockIntraband()

MockIntraband

public MockIntraband(long defaultTimeout)
Method Detail

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)

Liferay 7.0-ce-b4