Rice Pastry API

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

Field Summary
static int TYPE_FETCH
           
static int TYPE_INSERT
           
 
Method Summary
 boolean sendAlongSocket(int sendType, PastContent content)
          Return true to send the content along a socket, false to send it as a message.
 

Field Detail

TYPE_INSERT

static final int TYPE_INSERT
See Also:
Constant Field Values

TYPE_FETCH

static final int TYPE_FETCH
See Also:
Constant Field Values
Method Detail

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 etc
content -
Returns:

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection