rice.p2p.past.rawserialization
Interface SocketStrategy
- All Known Implementing Classes:
- DefaultSocketStrategy
public interface SocketStrategy
Past should send larger messages along the Applicaion Level Sockets to not
interfere with Pastry's overlay maintenance, and other application traffic.
- Author:
- Jeff Hoye
Method Summary |
boolean |
sendAlongSocket(int sendType,
PastContent content)
Return true to send the content along a socket, false to send it as a message. |
TYPE_INSERT
static final int TYPE_INSERT
- See Also:
- Constant Field Values
TYPE_FETCH
static final int TYPE_FETCH
- See Also:
- Constant Field Values
sendAlongSocket
boolean sendAlongSocket(int sendType,
PastContent content)
- Return true to send the content along a socket, false to send it as a message.
- Parameters:
sendType
- // the reason the content is being transmitted: TYPE_INSERT, TYPE_FETCH etccontent
-
- Returns:
Copyright © 2001-2005 - Rice Pastry.