@Authors(value="Nikolche Mihajlovski") @Since(value="2.0.0") public abstract class AbstractEventLoop<T> extends AbstractLoop<T>
| Modifier and Type | Field and Description |
|---|---|
protected long |
approxTime |
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, status, stopLoop, waitForStatus, waitForStatusOtherThan, waitToStart, waitToStopprotected final Selector selector
protected volatile long approxTime
public AbstractEventLoop(String name)
protected final void insideLoop()
insideLoop in class AbstractLoop<T>protected abstract void doProcessing()
protected void acceptOP(SelectionKey key) throws IOException
IOExceptionprotected void connectOP(SelectionKey key) throws IOException
IOExceptionprotected void readOP(SelectionKey key) throws IOException
IOExceptionprotected void writeOP(SelectionKey key) throws IOException
IOExceptionprotected void failedOP(SelectionKey key, Throwable e)
Copyright © 2014–2017 Nikolche Mihajlovski and contributors. All rights reserved.