org.apache.tomcat.util.net

Class NioEndpoint.KeyAttachment

public static class NioEndpoint.KeyAttachment extends Object

Field Summary
protected NioChannelchannel
protected booleancomet
protected booleancometNotify
protected intcometOps
protected booleancurrentAccess
protected booleanerror
protected intinterestOps
protected longlastAccess
protected longlastRegistered
protected NioEndpoint.Pollerpoller
protected CountDownLatchreadLatch
protected NioEndpoint.SendfileDatasendfileData
protected longtimeout
protected CountDownLatchwriteLatch
Constructor Summary
KeyAttachment()
Method Summary
voidaccess()
voidaccess(long access)
protected voidawaitLatch(CountDownLatch latch, long timeout, TimeUnit unit)
voidawaitReadLatch(long timeout, TimeUnit unit)
voidawaitWriteLatch(long timeout, TimeUnit unit)
NioChannelgetChannel()
booleangetComet()
booleangetCometNotify()
intgetCometOps()
booleangetCurrentAccess()
booleangetError()
longgetLastAccess()
longgetLastRegistered()
NioEndpoint.PollergetPoller()
CountDownLatchgetReadLatch()
NioEndpoint.SendfileDatagetSendfileData()
longgetTimeout()
CountDownLatchgetWriteLatch()
intinterestOps()
intinterestOps(int ops)
voidreset(NioEndpoint.Poller poller, NioChannel channel, long soTimeout)
voidreset()
protected CountDownLatchresetLatch(CountDownLatch latch)
voidresetReadLatch()
voidresetWriteLatch()
voidsetChannel(NioChannel channel)
voidsetComet(boolean comet)
voidsetCometNotify(boolean notify)
voidsetCometOps(int ops)
voidsetCurrentAccess(boolean access)
voidsetError(boolean error)
voidsetLastRegistered(long reg)
voidsetPoller(NioEndpoint.Poller poller)
voidsetSendfileData(NioEndpoint.SendfileData sf)
voidsetTimeout(long timeout)
protected CountDownLatchstartLatch(CountDownLatch latch, int cnt)
voidstartReadLatch(int cnt)
voidstartWriteLatch(int cnt)

Field Detail

channel

protected NioChannel channel

comet

protected boolean comet

cometNotify

protected boolean cometNotify

cometOps

protected int cometOps

currentAccess

protected boolean currentAccess

error

protected boolean error

interestOps

protected int interestOps

lastAccess

protected long lastAccess

lastRegistered

protected long lastRegistered

poller

protected NioEndpoint.Poller poller

readLatch

protected CountDownLatch readLatch

sendfileData

protected NioEndpoint.SendfileData sendfileData

timeout

protected long timeout

writeLatch

protected CountDownLatch writeLatch

Constructor Detail

KeyAttachment

public KeyAttachment()

Method Detail

access

public void access()

access

public void access(long access)

awaitLatch

protected void awaitLatch(CountDownLatch latch, long timeout, TimeUnit unit)

awaitReadLatch

public void awaitReadLatch(long timeout, TimeUnit unit)

awaitWriteLatch

public void awaitWriteLatch(long timeout, TimeUnit unit)

getChannel

public NioChannel getChannel()

getComet

public boolean getComet()

getCometNotify

public boolean getCometNotify()

getCometOps

public int getCometOps()

getCurrentAccess

public boolean getCurrentAccess()

getError

public boolean getError()

getLastAccess

public long getLastAccess()

getLastRegistered

public long getLastRegistered()

getPoller

public NioEndpoint.Poller getPoller()

getReadLatch

public CountDownLatch getReadLatch()

getSendfileData

public NioEndpoint.SendfileData getSendfileData()

getTimeout

public long getTimeout()

getWriteLatch

public CountDownLatch getWriteLatch()

interestOps

public int interestOps()

interestOps

public int interestOps(int ops)

reset

public void reset(NioEndpoint.Poller poller, NioChannel channel, long soTimeout)

reset

public void reset()

resetLatch

protected CountDownLatch resetLatch(CountDownLatch latch)

resetReadLatch

public void resetReadLatch()

resetWriteLatch

public void resetWriteLatch()

setChannel

public void setChannel(NioChannel channel)

setComet

public void setComet(boolean comet)

setCometNotify

public void setCometNotify(boolean notify)

setCometOps

public void setCometOps(int ops)

setCurrentAccess

public void setCurrentAccess(boolean access)

setError

public void setError(boolean error)

setLastRegistered

public void setLastRegistered(long reg)

setPoller

public void setPoller(NioEndpoint.Poller poller)

setSendfileData

public void setSendfileData(NioEndpoint.SendfileData sf)

setTimeout

public void setTimeout(long timeout)

startLatch

protected CountDownLatch startLatch(CountDownLatch latch, int cnt)

startReadLatch

public void startReadLatch(int cnt)

startWriteLatch

public void startWriteLatch(int cnt)
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.