org.apache.tomcat.util.net
Class NioEndpoint.KeyAttachment

java.lang.Object
  extended by org.apache.tomcat.util.net.NioEndpoint.KeyAttachment
Enclosing class:
NioEndpoint

public static class NioEndpoint.KeyAttachment
extends java.lang.Object


Field Summary
protected  NioChannel channel
           
protected  boolean comet
           
protected  boolean currentAccess
           
protected  boolean error
           
protected  int fairness
           
protected  int interestOps
           
protected  long lastAccess
           
protected  long lastRegistered
           
protected  java.util.concurrent.CountDownLatch latch
           
protected  int latchOps
           
protected  java.lang.Object mutex
           
protected  NioEndpoint.Poller poller
           
protected  NioEndpoint.SendfileData sendfileData
           
protected  long timeout
           
 
Constructor Summary
NioEndpoint.KeyAttachment()
           
 
Method Summary
 void access()
           
 void access(long access)
           
 void awaitLatch(long timeout, java.util.concurrent.TimeUnit unit, int latchOps)
           
 NioChannel getChannel()
           
 boolean getComet()
           
 boolean getCurrentAccess()
           
 boolean getError()
           
 int getFairness()
           
 long getLastAccess()
           
 long getLastRegistered()
           
 java.util.concurrent.CountDownLatch getLatch()
           
 int getLatchOps()
           
 java.lang.Object getMutex()
           
 NioEndpoint.Poller getPoller()
           
 NioEndpoint.SendfileData getSendfileData()
           
 long getTimeout()
           
 void incFairness()
           
 int interestOps()
           
 int interestOps(int ops)
           
 void reset()
           
 void reset(NioEndpoint.Poller poller, NioChannel channel)
           
 void resetLatch()
           
 void setChannel(NioChannel channel)
           
 void setComet(boolean comet)
           
 void setCurrentAccess(boolean access)
           
 void setError(boolean error)
           
 void setFairness(int f)
           
 void setLastRegistered(long reg)
           
 void setPoller(NioEndpoint.Poller poller)
           
 void setSendfileData(NioEndpoint.SendfileData sf)
           
 void setTimeout(long timeout)
           
 void startLatch(int cnt, int latchOps)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

NioEndpoint.KeyAttachment

public NioEndpoint.KeyAttachment()
Method Detail

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.