java.lang.AutoCloseable, java.io.Closeable, Connector, Container, Graceful, LifeCycleAbstractNetworkConnector, NetworkTrafficSelectChannelConnector, NetworkTrafficServerConnector, ServerConnectorpublic interface NetworkConnector extends Connector, java.io.Closeable
A Connector for TCP/IP network connectors
Container.InheritedListener, Container.ListenerLifeCycle.Listener| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Performs the activities needed to close the network communication
(for example, to stop accepting network connections).
|
java.lang.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, getTransportaddBean, addBean, addEventListener, getBean, getBeans, getBeans, getContainedBeans, isManaged, manage, removeBean, removeEventListener, unmanageaddLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, start, stop, stopvoid open() throws java.io.IOException
Performs the activities needed to open the network communication (for example, to start accepting incoming network connections).
java.io.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 java.lang.AutoCloseableclose in interface java.io.Closeableboolean isOpen()
java.lang.String getHost()
int getPort()
int getLocalPort()
Copyright © 1995–2018 Webtide. All rights reserved.