Modifier and Type | Field and Description |
---|---|
protected OrderedExecutorFactory |
executorFactory |
static boolean |
failOnCreateConnection |
protected int |
id |
static Logger |
log |
static int |
numberOfFailures |
Constructor and Description |
---|
InVMConnector(Map<String,Object> configuration,
BufferHandler handler,
ConnectionLifeCycleListener listener,
Executor closeExecutor,
Executor threadPool) |
Modifier and Type | Method and Description |
---|---|
void |
close()
closes the connector
|
Connection |
createConnection()
Create and return a connection from this connector.
|
void |
disconnect(String connectionID) |
Acceptor |
getAcceptor() |
BufferHandler |
getHandler() |
protected Connection |
internalCreateConnection(BufferHandler handler,
ConnectionLifeCycleListener listener,
Executor serverExecutor) |
boolean |
isStarted()
returns true if the connector is started, oterwise false.
|
static void |
resetFailures() |
void |
start()
starts the connector
|
public static final Logger log
public static volatile boolean failOnCreateConnection
public static volatile int numberOfFailures
protected final int id
protected final OrderedExecutorFactory executorFactory
public InVMConnector(Map<String,Object> configuration, BufferHandler handler, ConnectionLifeCycleListener listener, Executor closeExecutor, Executor threadPool)
public static void resetFailures()
public Acceptor getAcceptor()
public void close()
Connector
public boolean isStarted()
Connector
public Connection createConnection()
Connector
createConnection
in interface Connector
public void start()
Connector
public BufferHandler getHandler()
public void disconnect(String connectionID)
protected Connection internalCreateConnection(BufferHandler handler, ConnectionLifeCycleListener listener, Executor serverExecutor)
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.