|
Spring Integration | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TcpConnection
An abstraction over Socket
and SocketChannel
that
sends Message
objects by serializing the payload
and streaming it to the destination. Requires a TcpListener
to receive incoming messages.
Method Summary | |
---|---|
void |
close()
Closes the connection. |
java.lang.String |
getConnectionId()
|
org.springframework.core.serializer.Deserializer<?> |
getDeserializer()
|
java.lang.Object |
getDeserializerStateKey()
|
java.lang.String |
getHostAddress()
|
java.lang.String |
getHostName()
|
TcpListener |
getListener()
|
java.lang.Object |
getPayload()
Uses the deserializer to obtain the message payload from the connection's input stream. |
int |
getPort()
|
org.springframework.core.serializer.Serializer<?> |
getSerializer()
|
long |
incrementAndGetConnectionSequence()
|
boolean |
isOpen()
|
boolean |
isServer()
|
boolean |
isSingleUse()
|
void |
send(Message<?> message)
Converts and sends the message. |
Methods inherited from interface java.lang.Runnable |
---|
run |
Method Detail |
---|
void close()
boolean isOpen()
void send(Message<?> message) throws java.lang.Exception
message
- The message
java.lang.Exception
java.lang.Object getPayload() throws java.lang.Exception
java.lang.Exception
java.lang.String getHostName()
java.lang.String getHostAddress()
int getPort()
java.lang.String getConnectionId()
boolean isSingleUse()
boolean isServer()
org.springframework.core.serializer.Deserializer<?> getDeserializer()
org.springframework.core.serializer.Serializer<?> getSerializer()
TcpListener getListener()
long incrementAndGetConnectionSequence()
java.lang.Object getDeserializerStateKey()
Deserializer
that
maintains state for this connection. Currently, this would be the InputStream
associated with the connection, but the object should be treated as opaque
and ONLY used as a key.
|
Spring Integration | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |