|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.common.util.concurrent.AbstractExecutionThreadService
com.google.bitcoin.net.NioServer
public class NioServer
Creates a simple server listener which listens for incoming client connections and uses a StreamParser to
process data.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.google.common.util.concurrent.Service |
|---|
com.google.common.util.concurrent.Service.Listener, com.google.common.util.concurrent.Service.State |
| Constructor Summary | |
|---|---|
NioServer(StreamParserFactory parserFactory,
InetSocketAddress bindAddress)
Creates a new server which is capable of listening for incoming connections and processing client provided data using StreamParsers created by the given StreamParserFactory |
|
| Method Summary | |
|---|---|
protected void |
run()
|
void |
triggerShutdown()
Invoked by the Execution service when it's time to stop. |
| Methods inherited from class com.google.common.util.concurrent.AbstractExecutionThreadService |
|---|
addListener, executor, getServiceName, isRunning, shutDown, start, startAndWait, startUp, state, stop, stopAndWait, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NioServer(StreamParserFactory parserFactory,
InetSocketAddress bindAddress)
throws IOException
StreamParsers created by the given StreamParserFactory
IOException - If there is an issue opening the server socket or binding fails for some reason| Method Detail |
|---|
protected void run()
throws Exception
run in class com.google.common.util.concurrent.AbstractExecutionThreadServiceExceptionpublic void triggerShutdown()
AbstractExecutionThreadService.stop() instead.
triggerShutdown in class com.google.common.util.concurrent.AbstractExecutionThreadService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||