|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ChannelConnector
An interface to channel connectors.
| Method Summary | |
|---|---|
int |
getChannelTimeout()
Gets the timeout to wait for an asynchronous I/O operation from a channel. |
int |
getSelectorCount()
Gets the number of selectors to apply. |
int |
getSelectorTimeout()
Gets the timeout to wait for selected channels to be ready for I/O. |
void |
setAddress(String addr)
Sets the address of the server of the connection. |
void |
setChannelTimeout(int timeout)
Sets the timeout to wait for an asynchronous I/O operation. |
void |
setSelectorCount(int count)
Sets the number of selectors to apply. |
void |
setSelectorTimeout(int timeout)
Sets the timeout to wait for selected channels to be ready for I/O. |
| 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, 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 |
|---|
void setAddress(String addr)
throws UnknownHostException
addr - the address of the server.
UnknownHostException - if not found.int getChannelTimeout()
void setChannelTimeout(int timeout)
timeout - the timeout for channels in msecs.int getSelectorTimeout()
void setSelectorTimeout(int timeout)
Note that selector threads in Linux seem to suspend for exactly 100 seconds during longer intervals without selections if the selector timeout is not specified.
timeout - the timeout for channels in msecs.int getSelectorCount()
void setSelectorCount(int count)
Note that the per-thread model doesn't work for SSL connections.
Note that this value cannot be changed while the connector is running.
count - the number of idle selectors.
IllegalStateException - if the connector is running.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||