public abstract class AbstractEventLoop<T> extends AbstractLoop<T>
Modifier and Type | Field and Description |
---|---|
protected Selector |
selector |
ownerThread, status
Constructor and Description |
---|
AbstractEventLoop(String name) |
Modifier and Type | Method and Description |
---|---|
protected void |
acceptOP(SelectionKey key) |
protected void |
connectOP(SelectionKey key) |
protected abstract void |
doProcessing() |
protected void |
failedOP(SelectionKey key,
Throwable e) |
protected void |
insideLoop() |
protected void |
readOP(SelectionKey key) |
protected void |
writeOP(SelectionKey key) |
afterLoop, assertStatus, beforeLoop, checkOnSameThread, onSameThread, run, shutdown, start, stopLoop, waitToStart, waitToStop
protected final Selector selector
public AbstractEventLoop(String name)
protected final void insideLoop()
insideLoop
in class AbstractLoop<T>
protected abstract void doProcessing()
protected void acceptOP(SelectionKey key) throws IOException
IOException
protected void connectOP(SelectionKey key) throws IOException
IOException
protected void readOP(SelectionKey key) throws IOException
IOException
protected void writeOP(SelectionKey key) throws IOException
IOException
protected void failedOP(SelectionKey key, Throwable e)
Copyright © 2014–2015 Nikolche Mihajlovski. All rights reserved.