org.apache.tomcat.util.net
public static class NioEndpoint.KeyAttachment extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected NioChannel |
channel |
protected boolean |
comet |
protected boolean |
cometNotify |
protected int |
cometOps |
protected boolean |
currentAccess |
protected boolean |
error |
protected int |
interestOps |
protected long |
lastAccess |
protected long |
lastRegistered |
protected NioEndpoint.Poller |
poller |
protected java.util.concurrent.CountDownLatch |
readLatch |
protected NioEndpoint.SendfileData |
sendfileData |
protected long |
timeout |
protected java.util.concurrent.CountDownLatch |
writeLatch |
Constructor and Description |
---|
NioEndpoint.KeyAttachment() |
Modifier and Type | Method and Description |
---|---|
void |
access() |
void |
access(long access) |
protected void |
awaitLatch(java.util.concurrent.CountDownLatch latch,
long timeout,
java.util.concurrent.TimeUnit unit) |
void |
awaitReadLatch(long timeout,
java.util.concurrent.TimeUnit unit) |
void |
awaitWriteLatch(long timeout,
java.util.concurrent.TimeUnit unit) |
NioChannel |
getChannel() |
boolean |
getComet() |
boolean |
getCometNotify() |
int |
getCometOps() |
boolean |
getCurrentAccess() |
boolean |
getError() |
long |
getLastAccess() |
long |
getLastRegistered() |
NioEndpoint.Poller |
getPoller() |
java.util.concurrent.CountDownLatch |
getReadLatch() |
NioEndpoint.SendfileData |
getSendfileData() |
long |
getTimeout() |
java.util.concurrent.CountDownLatch |
getWriteLatch() |
int |
interestOps() |
int |
interestOps(int ops) |
void |
reset() |
void |
reset(NioEndpoint.Poller poller,
NioChannel channel,
long soTimeout) |
protected java.util.concurrent.CountDownLatch |
resetLatch(java.util.concurrent.CountDownLatch latch) |
void |
resetReadLatch() |
void |
resetWriteLatch() |
void |
setChannel(NioChannel channel) |
void |
setComet(boolean comet) |
void |
setCometNotify(boolean notify) |
void |
setCometOps(int ops) |
void |
setCurrentAccess(boolean access) |
void |
setError(boolean error) |
void |
setLastRegistered(long reg) |
void |
setPoller(NioEndpoint.Poller poller) |
void |
setSendfileData(NioEndpoint.SendfileData sf) |
void |
setTimeout(long timeout) |
protected java.util.concurrent.CountDownLatch |
startLatch(java.util.concurrent.CountDownLatch latch,
int cnt) |
void |
startReadLatch(int cnt) |
void |
startWriteLatch(int cnt) |
protected NioEndpoint.Poller poller
protected int interestOps
protected long lastAccess
protected boolean currentAccess
protected boolean comet
protected int cometOps
protected boolean cometNotify
protected long timeout
protected boolean error
protected NioChannel channel
protected java.util.concurrent.CountDownLatch readLatch
protected java.util.concurrent.CountDownLatch writeLatch
protected long lastRegistered
protected NioEndpoint.SendfileData sendfileData
public void reset(NioEndpoint.Poller poller, NioChannel channel, long soTimeout)
public void reset()
public NioEndpoint.Poller getPoller()
public void setPoller(NioEndpoint.Poller poller)
public long getLastAccess()
public void access()
public void access(long access)
public void setComet(boolean comet)
public boolean getComet()
public void setCometNotify(boolean notify)
public boolean getCometNotify()
public void setCometOps(int ops)
public int getCometOps()
public boolean getCurrentAccess()
public void setCurrentAccess(boolean access)
public void setTimeout(long timeout)
public long getTimeout()
public boolean getError()
public void setError(boolean error)
public NioChannel getChannel()
public void setChannel(NioChannel channel)
public int interestOps()
public int interestOps(int ops)
public java.util.concurrent.CountDownLatch getReadLatch()
public java.util.concurrent.CountDownLatch getWriteLatch()
protected java.util.concurrent.CountDownLatch resetLatch(java.util.concurrent.CountDownLatch latch)
public void resetReadLatch()
public void resetWriteLatch()
protected java.util.concurrent.CountDownLatch startLatch(java.util.concurrent.CountDownLatch latch, int cnt)
public void startReadLatch(int cnt)
public void startWriteLatch(int cnt)
protected void awaitLatch(java.util.concurrent.CountDownLatch latch, long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
java.lang.InterruptedException
public void awaitReadLatch(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
java.lang.InterruptedException
public void awaitWriteLatch(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
java.lang.InterruptedException
public long getLastRegistered()
public void setLastRegistered(long reg)
public void setSendfileData(NioEndpoint.SendfileData sf)
public NioEndpoint.SendfileData getSendfileData()
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.