org.norther.tammi.spray.connector
Interface ExecutableConnector
- All Superinterfaces:
- Connector, Executable, Runnable, Startable
- All Known Subinterfaces:
- ChannelConnector, LocalConnector, RMIConnector, SocketConnector, TCPConnector
- All Known Implementing Classes:
- DefaultChannelConnector, DefaultExecutableConnector, DefaultLocalConnector, DefaultRMIConnector, DefaultSocketConnector, DefaultTCPConnector
public interface ExecutableConnector
- extends Connector, Executable
An interface to executable connectors.
- Author:
- Ilkka Priha
| Methods inherited from interface org.norther.tammi.spray.connector.Connector |
getAddress, getConnectionTimeout, getFilterName, getKeyAlias, getLoggerName, getMaxIdleConnections, getName, getPort, getProvider, getRedirectPort, getRequestTimeout, isKeepConnection, isLoggingDisabled, isSecure, keepConnection, setConnectionTimeout, setFilterName, setKeyAlias, setKeyPassword, setLoggerName, setLoggingDisabled, setMaxIdleConnections, setPort, setProvider, setRedirectPort, setRequestTimeout, setSecure |
| Methods inherited from interface java.lang.Runnable |
run |
getConnectionCount
int getConnectionCount()
- Gets a snapshot of the number of active and idle connections.
The count is the number of active threads in the current request
executor. If the same executor is shared by several connectors, the count
is the sum of connections of these connectors.
- Specified by:
getConnectionCount in interface Connector
- Returns:
- the number of connections.
getRequestExecutorName
ObjectName getRequestExecutorName()
- Gets the executor for requests.
- Returns:
- the name of the executor or a query.
setRequestExecutorName
void setRequestExecutorName(ObjectName executor)
- Sets the executor for requests.
- Parameters:
executor - the name of the executor or a query.
Copyright © 2004 The Norther Organization. All rights reserved.