org.apache.tomcat.util.net
Class NioEndpoint.KeyAttachment
public static
class
NioEndpoint.KeyAttachment
extends Object
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 CountDownLatch readLatch
protected long timeout
protected CountDownLatch writeLatch
public KeyAttachment()
public void access()
public void access(long access)
protected void awaitLatch(CountDownLatch latch, long timeout, TimeUnit unit)
public void awaitReadLatch(long timeout, TimeUnit unit)
public void awaitWriteLatch(long timeout, TimeUnit unit)
public boolean getComet()
public boolean getCometNotify()
public int getCometOps()
public boolean getCurrentAccess()
public boolean getError()
public long getLastAccess()
public long getLastRegistered()
public CountDownLatch getReadLatch()
public long getTimeout()
public CountDownLatch getWriteLatch()
public int interestOps()
public int interestOps(int ops)
public void reset()
protected CountDownLatch resetLatch(CountDownLatch latch)
public void resetReadLatch()
public void resetWriteLatch()
public void setComet(boolean comet)
public void setCometNotify(boolean notify)
public void setCometOps(int ops)
public void setCurrentAccess(boolean access)
public void setError(boolean error)
public void setLastRegistered(long reg)
public void setTimeout(long timeout)
protected CountDownLatch startLatch(CountDownLatch latch, int cnt)
public void startReadLatch(int cnt)
public void startWriteLatch(int cnt)
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.