Spring Integration

org.springframework.integration.ip.tcp
Interface SocketWriter

All Known Implementing Classes:
AbstractSocketWriter, NetSocketWriter, NioSocketWriter

public interface SocketWriter

A general interface for writing to sockets.

Author:
Gary Russell

Method Summary
 void setMessageFormat(int messageFormat)
           
 void write(Object object)
          Write the entire buffer to the underlying socket.
 

Method Detail

write

void write(Object object)
           throws IOException
Write the entire buffer to the underlying socket. Appropriate wire protocols will be implemented so the receiving side can decode and reassemble the message, if packetized by the network.

Parameters:
object - The object to write.
Throws:
IOException

setMessageFormat

void setMessageFormat(int messageFormat)
Parameters:
messageFormat - the messageFormat to set

Spring Integration

Copyright © 2010. All Rights Reserved.