|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.comm.ConnectionConfigurator<C>
com.kuka.comm.net.NetConnectionConfigurator<TcpConnection>
com.kuka.comm.net.TcpConnectionConfigurator
public class TcpConnectionConfigurator
A TcpConnConfigurator is used by a TcpServer to configure a TcpConnection upon an
incoming connection request.
| Constructor Summary | |
|---|---|
TcpConnectionConfigurator(Encoder<Object,ByteBuffer> encoder,
Decoder<ByteBuffer,Object> decoder)
Creates a new configurator that uses the given encoder and decoder on configured connections. |
|
| Method Summary | |
|---|---|
void |
configure(TcpConnection connection)
Method to setup a TcpConnection with predefined settings. |
void |
setTcpTimeout(int timeout)
Sets a timeout for new TcpConnections during construction. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TcpConnectionConfigurator(Encoder<Object,ByteBuffer> encoder,
Decoder<ByteBuffer,Object> decoder)
encoder - An encoder.decoder - A decoder.| Method Detail |
|---|
public void configure(TcpConnection connection)
TcpConnection with predefined settings.
configure in class NetConnectionConfigurator<TcpConnection>connection - The TcpConnection to configure.public final void setTcpTimeout(int timeout)
TcpConnections during construction. The timeout must be greater than
0. A timeout of 0 is interpreted as an infinite timeout.
timeout - the timeout in milliseconds
IllegalArgumentException - if the timeout is less than 0
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||