Class ReplicationEnableCb
- java.lang.Object
-
- org.apache.bookkeeper.replication.ReplicationEnableCb
-
- All Implemented Interfaces:
BookkeeperInternalCallbacks.GenericCallback<java.lang.Void>
public class ReplicationEnableCb extends java.lang.Object implements BookkeeperInternalCallbacks.GenericCallback<java.lang.Void>
Callback which is getting notified when the replication process is enabled.
-
-
Constructor Summary
Constructors Constructor Description ReplicationEnableCb()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
await()
This is a blocking call and causes the current thread to wait until the replication process is enabled.void
operationComplete(int rc, java.lang.Void result)
-
-
-
Method Detail
-
operationComplete
public void operationComplete(int rc, java.lang.Void result)
- Specified by:
operationComplete
in interfaceBookkeeperInternalCallbacks.GenericCallback<java.lang.Void>
-
await
public void await() throws java.lang.InterruptedException
This is a blocking call and causes the current thread to wait until the replication process is enabled.- Throws:
java.lang.InterruptedException
- interrupted while waiting
-
-