org.apache.curator.framework.api
Interface Guaranteeable

All Superinterfaces:
Backgroundable<Pathable<Void>>, BackgroundPathable<Void>, BackgroundVersionable, Pathable<Void>, Versionable<BackgroundPathable<Void>>
All Known Subinterfaces:
DeleteBuilder

public interface Guaranteeable
extends BackgroundVersionable


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

guaranteed

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.

Returns:
this


Copyright © 2011–2014 The Apache Software Foundation. All rights reserved.