org.norther.tammi.spray.connector
Interface TCPConnector

All Superinterfaces:
Connector, Executable, ExecutableConnector, Runnable, Startable
All Known Subinterfaces:
ChannelConnector, LocalConnector, SocketConnector
All Known Implementing Classes:
DefaultChannelConnector, DefaultLocalConnector, DefaultSocketConnector, DefaultTCPConnector

public interface TCPConnector
extends ExecutableConnector

An interface to TCP connectors.

Author:
Ilkka Priha

Method Summary
 int getReceiveBufferSize()
          Gets the receive buffer size.
 int getSendBufferSize()
          Gets the send buffer size.
 int getServerBufferSize()
          Gets the server buffer size.
 int getSoLinger()
          Gets the SO_LINGER.
 int getSoTimeout()
          Gets the SO_TIMEOUT.
 boolean isTcpNoDelay()
          Gets the TCP_NODELAY.
 void setReceiveBufferSize(int size)
          Sets the receive buffer size.
 void setSendBufferSize(int size)
          Sets the send buffer size.
 void setServerBufferSize(int size)
          Sets the server buffer size.
 void setSoLinger(int linger)
          Sets the SO_LINGER.
 void setSoTimeout(int msecs)
          Sets the SO_TIMEOUT.
 void setTcpNoDelay(boolean flag)
          Sets the TCP_NODELAY.
 
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, setMaxIdleConnections, setPort, setProvider, setRedirectPort, setRequestTimeout, setSecure
 
Methods inherited from interface org.norther.tammi.core.base.Startable
isStarted, start, stop
 
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

getSoTimeout

int getSoTimeout()
Gets the SO_TIMEOUT.

Returns:
the SO_TIMEOUT.

setSoTimeout

void setSoTimeout(int msecs)
Sets the SO_TIMEOUT.

Parameters:
msecs - the SO_TIMEOUT in msecs.

getSoLinger

int getSoLinger()
Gets the SO_LINGER.

Returns:
the SO_LINGER.

setSoLinger

void setSoLinger(int linger)
Sets the SO_LINGER.

Parameters:
linger - the SO_LINGER in msecs.

isTcpNoDelay

boolean isTcpNoDelay()
Gets the TCP_NODELAY.

Returns:
the TCP_NODELAY.

setTcpNoDelay

void setTcpNoDelay(boolean flag)
Sets the TCP_NODELAY.

Parameters:
flag - the TCP_NODELAY.

getReceiveBufferSize

int getReceiveBufferSize()
Gets the receive buffer size.

Returns:
the buffer size.

setReceiveBufferSize

void setReceiveBufferSize(int size)
Sets the receive buffer size.

Parameters:
size - the buffer size.

getSendBufferSize

int getSendBufferSize()
Gets the send buffer size.

Returns:
the buffer size.

setSendBufferSize

void setSendBufferSize(int size)
Sets the send buffer size.

Parameters:
size - the buffer size.

getServerBufferSize

int getServerBufferSize()
Gets the server buffer size.

Returns:
the buffer size.

setServerBufferSize

void setServerBufferSize(int size)
Sets the server buffer size.

Parameters:
size - the buffer size.


Copyright © 2004 The Norther Organization. All rights reserved.