java.lang.AutoCloseable
, java.io.Closeable
, Connector
, org.eclipse.jetty.util.component.Graceful
, org.eclipse.jetty.util.component.LifeCycle
AbstractNetworkConnector
, NetworkTrafficSelectChannelConnector
, NetworkTrafficServerConnector
, ServerConnector
public interface NetworkConnector extends Connector, java.io.Closeable
A Connector
for TCP/IP network connectors
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, getTransport
void 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.AutoCloseable
close
in interface java.io.Closeable
boolean isOpen()
java.lang.String getHost()
int getPort()
int getLocalPort()
Copyright © 1995–2018 Webtide. All rights reserved.