public abstract class ConnectionAcceptor extends Object
Modifier and Type | Field and Description |
---|---|
protected ConnectionConfiguration |
configuration |
Constructor and Description |
---|
ConnectionAcceptor(ConnectionConfiguration configuration)
Constructs a new instance which will accept new connections based on the provided configuration.
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
isIdle()
Determines if this instance is currently in a state where it is actively serving connections.
|
abstract void |
reconfigure(ConnectionConfiguration configuration)
Reloads the acceptor configuration, without causing a disconnect of already established connections.
|
abstract void |
start()
Makes the instance start accepting connections.
|
abstract void |
stop()
Halts connection acceptation and gracefully releases resources.
|
protected ConnectionConfiguration configuration
public ConnectionAcceptor(ConnectionConfiguration configuration)
start()
is invoked.configuration
- The configuration for connections to be accepted (cannot be null).public abstract void start()
public abstract void stop()
public abstract boolean isIdle()
public abstract void reconfigure(ConnectionConfiguration configuration)
configuration
- The configuration for connections to be accepted (cannot be null).Copyright © 2003–2020 Ignite Realtime. All rights reserved.