public static class NioEndpoint.KeyAttachment extends SocketWrapper<NioChannel>
Constructor and Description |
---|
KeyAttachment(NioChannel channel) |
Modifier and Type | Method and Description |
---|---|
protected void |
awaitLatch(CountDownLatch latch,
long timeout,
TimeUnit unit) |
void |
awaitReadLatch(long timeout,
TimeUnit unit) |
void |
awaitWriteLatch(long timeout,
TimeUnit unit) |
boolean |
getCometNotify()
Deprecated.
|
NioEndpoint.Poller |
getPoller() |
CountDownLatch |
getReadLatch() |
NioEndpoint.SendfileData |
getSendfileData() |
CountDownLatch |
getWriteLatch() |
long |
getWriteTimeout() |
int |
interestOps() |
int |
interestOps(int ops) |
protected CountDownLatch |
resetLatch(CountDownLatch latch) |
void |
resetReadLatch() |
void |
resetWriteLatch() |
void |
setCometNotify(boolean notify)
Deprecated.
|
void |
setPoller(NioEndpoint.Poller poller) |
void |
setSendfileData(NioEndpoint.SendfileData sf) |
void |
setWriteTimeout(long writeTimeout) |
protected CountDownLatch |
startLatch(CountDownLatch latch,
int cnt) |
void |
startReadLatch(int cnt) |
void |
startWriteLatch(int cnt) |
access, access, addDispatch, clearDispatches, decrementKeepAlive, getBlockingStatus, getBlockingStatusReadLock, getBlockingStatusWriteLock, getError, getIteratorAndClearDispatches, getLastAccess, getLocalAddr, getLocalName, getLocalPort, getRemoteAddr, getRemoteHost, getRemotePort, getSocket, getTimeout, getWriteThreadLock, isAsync, isComet, isKeptAlive, isSecure, isUpgraded, registerforEvent, setAsync, setBlockingStatus, setComet, setError, setKeepAliveLeft, setKeptAlive, setLocalAddr, setLocalName, setLocalPort, setRemoteAddr, setRemoteHost, setRemotePort, setSecure, setTimeout, setUpgraded, toString
public KeyAttachment(NioChannel channel)
public NioEndpoint.Poller getPoller()
public void setPoller(NioEndpoint.Poller poller)
@Deprecated public void setCometNotify(boolean notify)
@Deprecated public boolean getCometNotify()
public int interestOps()
public int interestOps(int ops)
public CountDownLatch getReadLatch()
public CountDownLatch getWriteLatch()
protected CountDownLatch resetLatch(CountDownLatch latch)
public void resetReadLatch()
public void resetWriteLatch()
protected CountDownLatch startLatch(CountDownLatch latch, int cnt)
public void startReadLatch(int cnt)
public void startWriteLatch(int cnt)
protected void awaitLatch(CountDownLatch latch, long timeout, TimeUnit unit) throws InterruptedException
InterruptedException
public void awaitReadLatch(long timeout, TimeUnit unit) throws InterruptedException
InterruptedException
public void awaitWriteLatch(long timeout, TimeUnit unit) throws InterruptedException
InterruptedException
public void setSendfileData(NioEndpoint.SendfileData sf)
public NioEndpoint.SendfileData getSendfileData()
public void setWriteTimeout(long writeTimeout)
public long getWriteTimeout()
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.