com.liferay.portal.kernel.nio.intraband.nonblocking
Class SelectorIntraband
java.lang.Object
com.liferay.portal.kernel.nio.intraband.BaseIntraband
com.liferay.portal.kernel.nio.intraband.nonblocking.SelectorIntraband
- All Implemented Interfaces:
- Intraband
public class SelectorIntraband
- extends BaseIntraband
- Author:
- Shuyang Zhou
| 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 |
threadFactory
protected static final java.util.concurrent.ThreadFactory threadFactory
pollingThread
protected final java.lang.Thread pollingThread
registerQueue
protected final java.util.Queue<java.util.concurrent.FutureTask<RegistrationReference>> registerQueue
selector
protected final java.nio.channels.Selector selector
SelectorIntraband
public SelectorIntraband(long defaultTimeout)
throws java.io.IOException
- Throws:
java.io.IOException
close
public void close()
throws java.lang.InterruptedException,
java.io.IOException
- Specified by:
close in interface Intraband- Overrides:
close in class BaseIntraband
- Throws:
java.lang.InterruptedException
java.io.IOException
registerChannel
public RegistrationReference registerChannel(java.nio.channels.Channel channel)
throws java.io.IOException
- Throws:
java.io.IOException
registerChannel
public RegistrationReference registerChannel(java.nio.channels.ScatteringByteChannel scatteringByteChannel,
java.nio.channels.GatheringByteChannel gatheringByteChannel)
throws java.io.IOException
- Throws:
java.io.IOException
doSendDatagram
protected void doSendDatagram(RegistrationReference registrationReference,
Datagram datagram)
- Specified by:
doSendDatagram in class BaseIntraband
registerChannels
protected void registerChannels()