public interface Guaranteeable extends BackgroundVersionable
Modifier and Type | Method and Description |
---|---|
ChildrenDeletable |
guaranteed()
Solves this edge case: deleting a node can fail due to connection issues.
|
inBackground, inBackground, inBackground, inBackground, inBackground, inBackground
withVersion
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.
Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.