org.norther.tammi.spray.connector
Interface LocalConnector

All Superinterfaces:
Connector, Executable, ExecutableConnector, Runnable, Startable, TCPConnector
All Known Subinterfaces:
SocketConnector
All Known Implementing Classes:
DefaultLocalConnector, DefaultSocketConnector

public interface LocalConnector
extends TCPConnector

An interface to local connectors.

Version:
$Id: LocalConnector.java,v 1.21 2009/09/28 15:08:30 cvsimp Exp $
Author:
Ilkka Priha

Method Summary
 boolean isClientAuthNeeded()
          Checks whether client authentication is needed.
 boolean isClientAuthWanted()
          Checks whether client authentication is wanted.
 void setClientAuthNeeded(boolean flag)
          Sets whether client authentication is needed.
 void setClientAuthWanted(boolean flag)
          Sets whether client authentication is wanted.
 void setMaxIdleConnections(int count)
          Sets the maximum number of idle connections to keep alive.
 
Methods inherited from interface org.norther.tammi.spray.connector.TCPConnector
getReceiveBufferSize, getSendBufferSize, getServerBufferSize, getSoLinger, getSoTimeout, isTcpNoDelay, setReceiveBufferSize, setSendBufferSize, setServerBufferSize, setSoLinger, setSoTimeout, setTcpNoDelay
 
Methods inherited from interface org.norther.tammi.spray.connector.ExecutableConnector
getConnectionCount, getRequestExecutorName, setRequestExecutorName
 
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, setPort, setProvider, setRedirectPort, setRequestTimeout, setSecure
 
Methods inherited from interface org.norther.tammi.core.thread.Executable
getExecutorName, setExecutorName
 
Methods inherited from interface org.norther.tammi.core.base.Startable
isStarted, start, stop
 
Methods inherited from interface java.lang.Runnable
run
 

Method Detail

setMaxIdleConnections

void setMaxIdleConnections(int count)
Sets the maximum number of idle connections to keep alive. -1 indicates an indefinite number of connections.

Note that the limit cannot exceed the number of threads available in the current request executor.

Specified by:
setMaxIdleConnections in interface Connector
Parameters:
count - the max number of idle connections.

isClientAuthWanted

boolean isClientAuthWanted()
Checks whether client authentication is wanted.

Returns:
true for client authentication, false otherwise.

setClientAuthWanted

void setClientAuthWanted(boolean flag)
Sets whether client authentication is wanted.

Parameters:
flag - true for client authentication, false otherwise.

isClientAuthNeeded

boolean isClientAuthNeeded()
Checks whether client authentication is needed.

Returns:
true for client authentication, false otherwise.

setClientAuthNeeded

void setClientAuthNeeded(boolean flag)
Sets whether client authentication is needed.

Parameters:
flag - true for client authentication, false otherwise.


Copyright © 2004 The Norther Organization. All rights reserved.