|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LivenessProvider<Identifier>
Expands the Trasnport Layer to include pings and liveness checks.
Method Summary | |
---|---|
void |
addLivenessListener(LivenessListener<Identifier> name)
|
boolean |
checkLiveness(Identifier i,
java.util.Map<java.lang.String,java.lang.Object> options)
Returns wether a new notification will occur. |
void |
clearState(Identifier i)
Force layer to clear the existing state related to the Identifier. |
int |
getLiveness(Identifier i,
java.util.Map<java.lang.String,java.lang.Object> options)
|
boolean |
removeLivenessListener(LivenessListener<Identifier> name)
|
Method Detail |
---|
int getLiveness(Identifier i, java.util.Map<java.lang.String,java.lang.Object> options)
boolean checkLiveness(Identifier i, java.util.Map<java.lang.String,java.lang.Object> options)
i
- the node to check
void addLivenessListener(LivenessListener<Identifier> name)
boolean removeLivenessListener(LivenessListener<Identifier> name)
void clearState(Identifier i)
i
-
|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |