org.apache.tomcat.util.net
Class NioEndpoint.KeyAttachment
java.lang.Object
org.apache.tomcat.util.net.NioEndpoint.KeyAttachment
- Enclosing class:
- NioEndpoint
public static class NioEndpoint.KeyAttachment
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
poller
protected NioEndpoint.Poller poller
interestOps
protected int interestOps
mutex
protected java.lang.Object mutex
lastAccess
protected long lastAccess
currentAccess
protected boolean currentAccess
comet
protected boolean comet
timeout
protected long timeout
error
protected boolean error
channel
protected NioChannel channel
latch
protected java.util.concurrent.CountDownLatch latch
latchOps
protected int latchOps
fairness
protected int fairness
lastRegistered
protected long lastRegistered
sendfileData
protected NioEndpoint.SendfileData sendfileData
NioEndpoint.KeyAttachment
public NioEndpoint.KeyAttachment()
reset
public void reset(NioEndpoint.Poller poller,
NioChannel channel)
reset
public void reset()
getPoller
public NioEndpoint.Poller getPoller()
setPoller
public void setPoller(NioEndpoint.Poller poller)
getLastAccess
public long getLastAccess()
access
public void access()
access
public void access(long access)
setComet
public void setComet(boolean comet)
getComet
public boolean getComet()
getCurrentAccess
public boolean getCurrentAccess()
setCurrentAccess
public void setCurrentAccess(boolean access)
getMutex
public java.lang.Object getMutex()
setTimeout
public void setTimeout(long timeout)
getTimeout
public long getTimeout()
getError
public boolean getError()
setError
public void setError(boolean error)
getChannel
public NioChannel getChannel()
setChannel
public void setChannel(NioChannel channel)
interestOps
public int interestOps()
interestOps
public int interestOps(int ops)
getLatch
public java.util.concurrent.CountDownLatch getLatch()
resetLatch
public void resetLatch()
startLatch
public void startLatch(int cnt,
int latchOps)
awaitLatch
public void awaitLatch(long timeout,
java.util.concurrent.TimeUnit unit,
int latchOps)
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
getLatchOps
public int getLatchOps()
getFairness
public int getFairness()
setFairness
public void setFairness(int f)
incFairness
public void incFairness()
getLastRegistered
public long getLastRegistered()
setLastRegistered
public void setLastRegistered(long reg)
setSendfileData
public void setSendfileData(NioEndpoint.SendfileData sf)
getSendfileData
public NioEndpoint.SendfileData getSendfileData()
Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.