|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rice.p2p.util.AttachableCancellable
public class AttachableCancellable
Allows you to cancel a group of things. If you attach to a cancelled item, it gets cancelled now.
Constructor Summary | |
---|---|
AttachableCancellable()
|
Method Summary | |
---|---|
void |
attach(Cancellable c)
|
boolean |
cancel()
Returns false if any are false; |
void |
detach(Cancellable c)
|
boolean |
isCancelled()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AttachableCancellable()
Method Detail |
---|
public boolean isCancelled()
public boolean cancel()
cancel
in interface Cancellable
public void attach(Cancellable c)
public void detach(Cancellable c)
|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |