|
Rice Pastry API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrice.pastry.routing.SendOptions
public class SendOptions
This is the options for a client to send messages.
| Field Summary | |
|---|---|
static boolean |
defaultAllowMultipleHops
|
static boolean |
defaultNoShortCuts
|
static boolean |
defaultRandom
|
static boolean |
defaultRerouteIfSuspected
|
static boolean |
defaultShortestPath
|
| Constructor Summary | |
|---|---|
SendOptions()
Constructor. |
|
SendOptions(boolean random,
boolean noShortCuts,
boolean shortestPath,
boolean allowMultipleHops,
boolean rerouteIfSuspected)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
canRandom()
Returns whether randomizations on the route are allowed. |
boolean |
makeNoShortCuts()
Returns whether it is required for each routing step to go to a node whose id matches in exactly one more digit. |
boolean |
multipleHopsAllowed()
Returns whether multiple hops are allowed during the transmission of this message. |
boolean |
requireShortestPath()
Returns whether it is required to go to the strictly nearest known node with appropriate node id. |
boolean |
rerouteIfSuspected()
|
void |
setMultipleHopsAllowed(boolean b)
|
void |
setRerouteIfSuspected(boolean b)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final boolean defaultRandom
public static final boolean defaultNoShortCuts
public static final boolean defaultShortestPath
public static final boolean defaultAllowMultipleHops
public static final boolean defaultRerouteIfSuspected
| Constructor Detail |
|---|
public SendOptions()
public SendOptions(boolean random,
boolean noShortCuts,
boolean shortestPath,
boolean allowMultipleHops,
boolean rerouteIfSuspected)
random - true if randomize the routenoShortCuts - true if require each routing step to go to a node whose
id matches in exactly one more digitshortestPath - true if require to go to the strictly nearest known
node with appropriate node idallowMultipleHops - true if we allow multiple hops for this
transmission, false otherwise.| Method Detail |
|---|
public boolean canRandom()
public boolean makeNoShortCuts()
public boolean requireShortestPath()
public boolean multipleHopsAllowed()
public void setMultipleHopsAllowed(boolean b)
public boolean rerouteIfSuspected()
public void setRerouteIfSuspected(boolean b)
|
Rice Pastry API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||