|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Guaranteeable
| Method Summary | |
|---|---|
ChildrenDeletable |
guaranteed()
Solves this edge case: deleting a node can fail due to connection issues. |
| Methods inherited from interface org.apache.curator.framework.api.Backgroundable |
|---|
inBackground, inBackground, inBackground, inBackground, inBackground, inBackground |
| Methods inherited from interface org.apache.curator.framework.api.Pathable |
|---|
forPath |
| Methods inherited from interface org.apache.curator.framework.api.Versionable |
|---|
withVersion |
| Method Detail |
|---|
ChildrenDeletable guaranteed()
Solves this edge case: deleting a node can fail due to connection issues. Further, if the node was ephemeral, the node will not get auto-deleted as the session is still valid. This can wreak havoc with lock implementations.
When guaranteed is set, Curator will record failed node deletions and
attempt to delete them in the background until successful. NOTE: you will still get an
exception when the deletion fails. But, you can be assured that as long as the
CuratorFramework instance is open attempts will be made to delete the node.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||