|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tomcat.util.net.NioEndpoint.Poller
public class NioEndpoint.Poller
Poller class.
Field Summary | |
---|---|
protected boolean |
close
|
protected java.util.concurrent.ConcurrentLinkedQueue<java.lang.Runnable> |
events
|
protected int |
keepAliveCount
|
protected long |
nextExpiration
|
protected java.nio.channels.Selector |
selector
|
protected java.util.concurrent.atomic.AtomicLong |
wakeupCounter
|
Constructor Summary | |
---|---|
NioEndpoint.Poller()
|
Method Summary | |
---|---|
void |
add(NioChannel socket)
Add specified socket and associated pool to the poller. |
void |
add(NioChannel socket,
int interestOps)
|
void |
addEvent(java.lang.Runnable event)
|
void |
cancelledKey(java.nio.channels.SelectionKey key,
SocketStatus status)
|
protected void |
destroy()
Destroy the poller. |
boolean |
events()
|
int |
getKeepAliveCount()
|
java.nio.channels.Selector |
getSelector()
|
protected void |
init()
Create the poller. |
void |
register(NioChannel socket)
|
void |
run()
The background thread that listens for incoming TCP/IP connections and hands them off to an appropriate processor. |
protected void |
timeout(int keyCount,
boolean hasEvents)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.nio.channels.Selector selector
protected java.util.concurrent.ConcurrentLinkedQueue<java.lang.Runnable> events
protected boolean close
protected long nextExpiration
protected int keepAliveCount
protected java.util.concurrent.atomic.AtomicLong wakeupCounter
Constructor Detail |
---|
public NioEndpoint.Poller() throws java.io.IOException
java.io.IOException
Method Detail |
---|
public int getKeepAliveCount()
public java.nio.channels.Selector getSelector()
protected void init()
protected void destroy()
public void addEvent(java.lang.Runnable event)
public void add(NioChannel socket)
socket
- to add to the pollerpublic void add(NioChannel socket, int interestOps)
public boolean events()
public void register(NioChannel socket)
public void cancelledKey(java.nio.channels.SelectionKey key, SocketStatus status)
public void run()
run
in interface java.lang.Runnable
protected void timeout(int keyCount, boolean hasEvents)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |