public static class Nio2Endpoint.Nio2SocketWrapper extends SocketWrapper<Nio2Channel>
Constructor and Description |
---|
Nio2Endpoint.Nio2SocketWrapper(Nio2Channel 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) |
Nio2Channel |
getChannel() |
boolean |
getCometNotify() |
CountDownLatch |
getReadLatch() |
Nio2Endpoint.SendfileData |
getSendfileData() |
long |
getTimeout() |
CountDownLatch |
getWriteLatch() |
long |
getWriteTimeout() |
int |
interestOps() |
int |
interestOps(int ops) |
boolean |
isUpgradeInit() |
void |
reset() |
void |
reset(Nio2Channel channel,
long soTimeout) |
protected CountDownLatch |
resetLatch(CountDownLatch latch) |
void |
resetReadLatch() |
void |
resetWriteLatch() |
void |
setCometNotify(boolean notify) |
void |
setSendfileData(Nio2Endpoint.SendfileData sf) |
void |
setUpgraded(boolean upgraded) |
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, getWriteThreadLock, isAsync, isComet, isKeptAlive, isSecure, isUpgraded, setAsync, setBlockingStatus, setComet, setError, setKeepAliveLeft, setKeptAlive, setLocalAddr, setLocalName, setLocalPort, setRemoteAddr, setRemoteHost, setRemotePort, setSecure, setTimeout, toString
public Nio2Endpoint.Nio2SocketWrapper(Nio2Channel channel)
public void reset(Nio2Channel channel, long soTimeout)
reset
in class SocketWrapper<Nio2Channel>
public void reset()
public long getTimeout()
getTimeout
in class SocketWrapper<Nio2Channel>
public void setUpgraded(boolean upgraded)
setUpgraded
in class SocketWrapper<Nio2Channel>
public boolean isUpgradeInit()
public void setCometNotify(boolean notify)
public boolean getCometNotify()
public Nio2Channel getChannel()
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(Nio2Endpoint.SendfileData sf)
public Nio2Endpoint.SendfileData getSendfileData()
public void setWriteTimeout(long writeTimeout)
public long getWriteTimeout()
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.