Package org.apache.zookeeper.server
Class WorkerService.WorkRequest
java.lang.Object
org.apache.zookeeper.server.WorkerService.WorkRequest
- Enclosing class:
WorkerService
Callers should implement a class extending WorkRequest in order to
schedule work with the service.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
WorkRequest
public WorkRequest()
-
-
Method Details
-
doWork
Must be implemented. Is called when the work request is run.- Throws:
Exception
-
cleanup
public void cleanup()(Optional) If implemented, is called if the service is stopped or unable to schedule the request.
-