public class StreamEngine extends Object implements IEngine, IPollEvents
| Modifier and Type | Class and Description |
|---|---|
static class |
StreamEngine.ErrorReason |
| Constructor and Description |
|---|
StreamEngine(SocketChannel fd,
Options options,
String endpoint) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
void |
inEvent()
Called by I/O thread when file descriptor is ready for reading.
|
void |
outEvent()
Called by I/O thread when file descriptor is ready for writing.
|
void |
plug(IOThread ioThread,
SessionBase session) |
void |
restartInput() |
void |
restartOutput() |
void |
terminate() |
void |
timerEvent(int id)
Called when timer expires.
|
String |
toString() |
void |
zapMsgAvailable() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitacceptEvent, connectEventpublic StreamEngine(SocketChannel fd, Options options, String endpoint)
public void destroy()
public void plug(IOThread ioThread, SessionBase session)
public void inEvent()
IPollEventsinEvent in interface IPollEventspublic void outEvent()
IPollEventsoutEvent in interface IPollEventspublic void restartOutput()
restartOutput in interface IEnginepublic void restartInput()
restartInput in interface IEnginepublic void zapMsgAvailable()
zapMsgAvailable in interface IEnginepublic void timerEvent(int id)
IPollEventstimerEvent in interface IPollEventsid - the ID of the expired timer.Copyright © 2020. All rights reserved.