public class AcceptorImpl extends java.lang.Object implements Acceptor
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
CONNECTION_ACCEPTOR_KEY |
| Modifier | Constructor and Description |
|---|---|
protected |
AcceptorImpl(Reactor reactor,
java.lang.String host,
int port,
Handler handler) |
| Modifier and Type | Method and Description |
|---|---|
Record |
attachments() |
void |
close()
Closes the acceptor, stopping it accepting any further in-bound
connections.
|
void |
free()
Frees any resources associated with this child.
|
int |
getPortNumber() |
protected static final java.lang.String CONNECTION_ACCEPTOR_KEY
public void close()
Acceptorpublic int getPortNumber()
throws java.io.IOException
java.io.IOExceptionpublic void free()
ReactorChildfree in interface ReactorChildpublic Record attachments()
attachments in interface Extendable