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 interestOps
           
protected  long lastAccess
           
protected  java.lang.Object mutex
           
protected  NioEndpoint.Poller poller
           
protected  long timeout
           
 
Constructor Summary
NioEndpoint.KeyAttachment()
           
 
Method Summary
 void access()
           
 void access(long access)
           
 NioChannel getChannel()
           
 boolean getComet()
           
 boolean getCurrentAccess()
           
 boolean getError()
           
 long getLastAccess()
           
 java.lang.Object getMutex()
           
 NioEndpoint.Poller getPoller()
           
 long getTimeout()
           
 int interestOps()
           
 int interestOps(int ops)
           
 void reset()
           
 void reset(NioEndpoint.Poller poller, NioChannel channel)
           
 void setChannel(NioChannel channel)
           
 void setComet(boolean comet)
           
 void setCurrentAccess(boolean access)
           
 void setError(boolean error)
           
 void setPoller(NioEndpoint.Poller poller)
           
 void setTimeout(long timeout)
           
 
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
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)


Copyright © 2000-2006 Apache Software Foundation. All Rights Reserved.