Liferay 6.2-ce-ga5

com.liferay.portal.kernel.nio.intraband.blocking
Class ExecutorIntraband

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

public class ExecutorIntraband
extends BaseIntraband


Nested Class Summary
protected  class ExecutorIntraband.ReadingCallable
           
protected  class ExecutorIntraband.WritingCallable
           
 
Nested classes/interfaces inherited from class com.liferay.portal.kernel.nio.intraband.BaseIntraband
BaseIntraband.SendSyncDatagramCompletionHandler
 
Field Summary
protected  ExecutorService executorService
           
protected static ThreadFactory THREAD_FACTORY
           
 
Fields inherited from class com.liferay.portal.kernel.nio.intraband.BaseIntraband
datagramReceiveHandlersReference, defaultTimeout, open, REPLIED_ENUM_SET, responseWaitingMap, sequenceIdGenerator, timeoutMap
 
Constructor Summary
ExecutorIntraband(long defaultTimeout)
           
 
Method Summary
 void close()
           
protected  RegistrationReference doRegisterChannel(ScatteringByteChannel scatteringByteChannel, GatheringByteChannel gatheringByteChannel)
           
protected  void doSendDatagram(RegistrationReference registrationReference, Datagram datagram)
           
 RegistrationReference registerChannel(Channel channel)
           
 RegistrationReference registerChannel(ScatteringByteChannel scatteringByteChannel, GatheringByteChannel gatheringByteChannel)
           
 
Methods inherited from class com.liferay.portal.kernel.nio.intraband.BaseIntraband
addResponseWaitingDatagram, cleanUpTimeoutResponseWaitingDatagrams, 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
 

Field Detail

THREAD_FACTORY

protected static final ThreadFactory THREAD_FACTORY

executorService

protected final ExecutorService executorService
Constructor Detail

ExecutorIntraband

public ExecutorIntraband(long defaultTimeout)
Method Detail

close

public void close()
           throws InterruptedException,
                  IOException
Specified by:
close in interface Intraband
Overrides:
close in class BaseIntraband
Throws:
InterruptedException
IOException

registerChannel

public RegistrationReference registerChannel(Channel channel)

registerChannel

public RegistrationReference registerChannel(ScatteringByteChannel scatteringByteChannel,
                                             GatheringByteChannel gatheringByteChannel)

doRegisterChannel

protected RegistrationReference doRegisterChannel(ScatteringByteChannel scatteringByteChannel,
                                                  GatheringByteChannel gatheringByteChannel)

doSendDatagram

protected void doSendDatagram(RegistrationReference registrationReference,
                              Datagram datagram)
Specified by:
doSendDatagram in class BaseIntraband

Liferay 6.2-ce-ga5