public interface NetworkConnector extends Connector, Closeable
A Connector
for TCP/IP network connectors
LifeCycle.Listener
Modifier and Type | Method and Description |
---|---|
void |
close()
Performs the activities needed to close the network communication
(for example, to stop accepting network connections).
|
String |
getHost() |
int |
getLocalPort() |
int |
getPort() |
boolean |
isOpen()
A Connector may be opened and not started (to reserve a port)
or closed and running (to allow graceful shutdown of existing connections)
|
void |
open()
Performs the activities needed to open the network communication
(for example, to start accepting incoming network connections).
|
getByteBufferPool, getConnectedEndPoints, getConnectionFactories, getConnectionFactory, getConnectionFactory, getDefaultConnectionFactory, getExecutor, getIdleTimeout, getName, getProtocols, getScheduler, getServer, getTransport
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
void open() throws IOException
Performs the activities needed to open the network communication (for example, to start accepting incoming network connections).
IOException
- if this connector cannot be openedclose()
void close()
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 callingLifeCycle.stop()
and it will not be active again until a subsequent call to LifeCycle.start()
close
in interface AutoCloseable
close
in interface Closeable
boolean isOpen()
String getHost()
int getPort()
int getLocalPort()
Copyright © 1995-2015 Webtide. All Rights Reserved.