org.apache.tomcat.util.net

Class NioBlockingSelector.BlockPoller

protected class NioBlockingSelector.BlockPoller extends Thread

Field Summary
protected ConcurrentLinkedQueue<Runnable>events
protected booleanrun
protected Selectorselector
protected AtomicIntegerwakeupCounter
Method Summary
voidadd(NioEndpoint.KeyAttachment key, int ops, NioBlockingSelector.KeyReference ref)
voidcancel(SelectionKey sk, NioEndpoint.KeyAttachment key, int ops)
voidcancelKey(SelectionKey key)
voidcountDown(CountDownLatch latch)
voiddisable()
booleanevents()
voidremove(NioEndpoint.KeyAttachment key, int ops)
voidrun()
voidwakeup()

Field Detail

events

protected ConcurrentLinkedQueue<Runnable> events

run

protected boolean run

selector

protected Selector selector

wakeupCounter

protected AtomicInteger wakeupCounter

Method Detail

add

public void add(NioEndpoint.KeyAttachment key, int ops, NioBlockingSelector.KeyReference ref)

cancel

public void cancel(SelectionKey sk, NioEndpoint.KeyAttachment key, int ops)

cancelKey

public void cancelKey(SelectionKey key)

countDown

public void countDown(CountDownLatch latch)

disable

public void disable()

events

public boolean events()

remove

public void remove(NioEndpoint.KeyAttachment key, int ops)

run

public void run()

wakeup

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