Class DeleteCompletionCallback
java.lang.Object
org.apache.hadoop.registry.server.services.DeleteCompletionCallback
- All Implemented Interfaces:
org.apache.curator.framework.api.BackgroundCallback
public class DeleteCompletionCallback
extends Object
implements org.apache.curator.framework.api.BackgroundCallback
Curator callback for delete operations completing.
This callback logs at debug and increments the event counter.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGet the number of deletion eventsvoidprocessResult(org.apache.curator.framework.CuratorFramework client, org.apache.curator.framework.api.CuratorEvent event)
-
Constructor Details
-
DeleteCompletionCallback
public DeleteCompletionCallback()
-
-
Method Details
-
processResult
public void processResult(org.apache.curator.framework.CuratorFramework client, org.apache.curator.framework.api.CuratorEvent event) throws Exception - Specified by:
processResultin interfaceorg.apache.curator.framework.api.BackgroundCallback- Throws:
Exception
-
getEventCount
public int getEventCount()Get the number of deletion events- Returns:
- the count of events
-