|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rice.p2p.past.rawserialization.DefaultSocketStrategy
public class DefaultSocketStrategy
A SocketStrategy that always returns the same answer.
Field Summary |
---|
Fields inherited from interface rice.p2p.past.rawserialization.SocketStrategy |
---|
TYPE_FETCH, TYPE_INSERT |
Constructor Summary | |
---|---|
DefaultSocketStrategy(boolean answer)
|
Method Summary | |
---|---|
boolean |
sendAlongSocket(int sendType,
PastContent content)
Return true to send the content along a socket, false to send it as a message. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultSocketStrategy(boolean answer)
Method Detail |
---|
public boolean sendAlongSocket(int sendType, PastContent content)
SocketStrategy
sendAlongSocket
in interface SocketStrategy
sendType
- // the reason the content is being transmitted: TYPE_INSERT, TYPE_FETCH etc
|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |