public class TCPActorServer extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
TCPActorServer.ActorServerClientConnection |
| Modifier and Type | Field and Description |
|---|---|
protected List<TCPActorServer.ActorServerClientConnection> |
connections |
protected boolean |
terminated |
| Constructor and Description |
|---|
TCPActorServer(ActorProxy proxy,
int port) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isTerminated() |
static TCPActorServer |
Publish(Actor act,
int port) |
static TCPActorServer |
Publish(Actor act,
int port,
java.util.function.Consumer<Actor> closeListener) |
void |
setTerminated(boolean terminated) |
void |
start()
warning: consumes calling thread !!
|
protected List<TCPActorServer.ActorServerClientConnection> connections
protected volatile boolean terminated
public TCPActorServer(ActorProxy proxy, int port) throws IOException
IOExceptionpublic static TCPActorServer Publish(Actor act, int port) throws Exception
Exceptionpublic static TCPActorServer Publish(Actor act, int port, java.util.function.Consumer<Actor> closeListener) throws Exception
Exceptionpublic boolean isTerminated()
public void setTerminated(boolean terminated)
public void start()
throws IOException
IOExceptionCopyright © 2015. All rights reserved.