Extends the AbstractConnector support for the NetworkConnector interface.
| Modifier and Type | Field and Description |
|---|---|
| private volatile String | |
| private volatile int |
| Access | Constructor and Description |
|---|---|
| public | AbstractNetworkConnector(Server server, Executor executor, Scheduler scheduler, ByteBufferPool bufferPool, int acceptors, ConnectionFactory... factories)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements org. Performs the activities needed to close the network communication (for example, to stop accepting network connections). |
| protected void | doStart()
Overrides org. Starts the managed lifecycle beans in the order they were added. |
| protected void | doStop()
Overrides org. Stops the managed lifecycle beans in the reverse order they were added. |
| public String | |
| public int | |
| public int | |
| protected boolean | |
| public void | open()
Implements org. Performs the activities needed to open the network communication (for example, to start accepting incoming network connections). |
| public void | |
| public void | |
| public CompletableFuture | shutdown()
Overrides org. Implements org. Shutdown the component. |
| public String | toString()
Overrides org. Returns a string representation of the object. |
| _host | back to summary |
|---|---|
| private volatile String _host | |
| _port | back to summary |
|---|---|
| private volatile int _port | |
| AbstractNetworkConnector | back to summary |
|---|---|
| public AbstractNetworkConnector(Server server, Executor executor, Scheduler scheduler, ByteBufferPool bufferPool, int acceptors, ConnectionFactory... factories) | |
| close | back to summary |
|---|---|
| public void close() Implements org. Doc from org. Performs the activities needed to close the network communication (for example, to stop accepting network connections). Once a connector has been closed, it cannot be opened again without first callingstop() and it will not be active again until a subsequent call to start()
| |
| doStart | back to summary |
|---|---|
| protected void doStart() throws Exception Overrides org. Doc from org. Starts the managed lifecycle beans in the order they were added.
| |
| doStop | back to summary |
|---|---|
| protected void doStop() throws Exception Overrides org. Doc from org. Stops the managed lifecycle beans in the reverse order they were added.
| |
| getHost | back to summary |
|---|---|
| public String getHost() Implements org.
| |
| getLocalPort | back to summary |
|---|---|
| public int getLocalPort() Implements org.
| |
| getPort | back to summary |
|---|---|
| public int getPort() Implements org.
| |
| handleAcceptFailure | back to summary |
|---|---|
| protected boolean handleAcceptFailure(Throwable ex) Overrides org.
| |
| open | back to summary |
|---|---|
| public void open() throws IOException Implements org. Doc from org. Performs the activities needed to open the network communication (for example, to start accepting incoming network connections).
| |
| setHost | back to summary |
|---|---|
| public void setHost(String host) | |
| setPort | back to summary |
|---|---|
| public void setPort(int port) | |
| shutdown | back to summary |
|---|---|
| public CompletableFuture Overrides org. Implements org. Doc from org. Shutdown the component. When this method returns, the component should not accept any new load.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |