Rice Pastry API

rice.p2p.past.rawserialization
Class DefaultSocketStrategy

java.lang.Object
  extended byrice.p2p.past.rawserialization.DefaultSocketStrategy
All Implemented Interfaces:
SocketStrategy

public class DefaultSocketStrategy
extends java.lang.Object
implements SocketStrategy

A SocketStrategy that always returns the same answer.

Version:
$Id: pretty.settings 2305 2005-03-11 20:22:33Z jeffh $
Author:
Jeff Hoye

Field Summary
 
Fields inherited from interface rice.p2p.past.rawserialization.SocketStrategy
TYPE_FETCH, TYPE_INSERT
 
Constructor Summary
DefaultSocketStrategy(boolean answer)
          Constructor for DefaultSocketStrategy.
 
Method Summary
 boolean sendAlongSocket(int sendType, PastContent content)
          DESCRIBE THE METHOD
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSocketStrategy

public DefaultSocketStrategy(boolean answer)
Constructor for DefaultSocketStrategy.

Parameters:
answer - DESCRIBE THE PARAMETER
Method Detail

sendAlongSocket

public boolean sendAlongSocket(int sendType,
                               PastContent content)
DESCRIBE THE METHOD

Specified by:
sendAlongSocket in interface SocketStrategy
Parameters:
sendType - DESCRIBE THE PARAMETER
content - DESCRIBE THE PARAMETER
Returns:
DESCRIBE THE RETURN VALUE

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection