Package org.apache.bookkeeper.metastore
Class MetastoreUtils.MultiMetastoreCallback<T>
- java.lang.Object
-
- org.apache.bookkeeper.metastore.MetastoreUtils.MultiMetastoreCallback<T>
-
- All Implemented Interfaces:
MetastoreCallback<T>
- Enclosing class:
- MetastoreUtils
static class MetastoreUtils.MultiMetastoreCallback<T> extends java.lang.Object implements MetastoreCallback<T>
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.concurrent.CountDownLatchdoneLatch(package private) java.util.concurrent.atomic.AtomicIntegernumFinished(package private) intnumOps(package private) intrc
-
Constructor Summary
Constructors Constructor Description MultiMetastoreCallback(int numOps)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcomplete(int rc, T value, java.lang.Object ctx)voidwaitUntilAllFinished()
-
-
-
Method Detail
-
complete
public void complete(int rc, T value, java.lang.Object ctx)- Specified by:
completein interfaceMetastoreCallback<T>- See Also:
MSException.Code
-
waitUntilAllFinished
public void waitUntilAllFinished() throws MSException, java.lang.InterruptedException- Throws:
MSExceptionjava.lang.InterruptedException
-
-