|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.integration.ip.tcp.connection.AbstractConnectionFactory
org.springframework.integration.ip.tcp.connection.AbstractClientConnectionFactory
org.springframework.integration.ip.tcp.connection.TcpNetClientConnectionFactory
public class TcpNetClientConnectionFactory
A client connection factory that creates TcpNetConnections.
| Field Summary |
|---|
| Fields inherited from class org.springframework.integration.ip.tcp.connection.AbstractClientConnectionFactory |
|---|
theConnection |
| Fields inherited from class org.springframework.integration.ip.tcp.connection.AbstractConnectionFactory |
|---|
active, DEFAULT_REPLY_TIMEOUT, deserializer, host, interceptorFactoryChain, listener, logger, mapper, poolSize, port, sender, serializer, singleUse, soTimeout, taskExecutor |
| Constructor Summary | |
|---|---|
TcpNetClientConnectionFactory(java.lang.String host,
int port)
Creates a TcpNetClientConnectionFactory for connections to the host and port. |
|
| Method Summary | |
|---|---|
void |
close()
Closes the server. |
TcpConnection |
getConnection()
Obtains a connection - if AbstractConnectionFactory.setSingleUse(boolean) was called with
true, a new connection is returned; otherwise a single connection is
reused for all requests while the connection remains open. |
boolean |
isRunning()
|
void |
run()
|
| Methods inherited from class org.springframework.integration.ip.tcp.connection.AbstractClientConnectionFactory |
|---|
initializeConnection |
| Methods inherited from class org.springframework.integration.ip.tcp.connection.AbstractConnectionFactory |
|---|
getHost, getPhase, getPort, getSoLinger, getSoReceiveBufferSize, getSoSendBufferSize, getSoTimeout, getSoTrafficClass, isAutoStartup, isSingleUse, isSoKeepAlive, isSoTcpNoDelay, registerListener, registerSender, setDeserializer, setInterceptorFactoryChain, setMapper, setPoolSize, setSerializer, setSingleUse, setSocketAttributes, setSoKeepAlive, setSoLinger, setSoReceiveBufferSize, setSoSendBufferSize, setSoTcpNoDelay, setSoTimeout, setSoTrafficClass, setTaskExecutor, start, stop, stop, wrapConnection |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TcpNetClientConnectionFactory(java.lang.String host,
int port)
host - the hostport - the port| Method Detail |
|---|
public TcpConnection getConnection()
throws java.lang.Exception
AbstractConnectionFactory.setSingleUse(boolean) was called with
true, a new connection is returned; otherwise a single connection is
reused for all requests while the connection remains open.
java.lang.Exceptionpublic void close()
AbstractConnectionFactory
close in class AbstractConnectionFactorypublic void run()
public boolean isRunning()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||