Package org.apache.bookkeeper.metastore
Class MetastoreUtils.SyncMetastoreCallback<T>
- java.lang.Object
-
- org.apache.bookkeeper.metastore.MetastoreUtils.SyncMetastoreCallback<T>
-
- All Implemented Interfaces:
MetastoreCallback<T>
- Enclosing class:
- MetastoreUtils
static class MetastoreUtils.SyncMetastoreCallback<T> extends java.lang.Object implements MetastoreCallback<T>
-
-
Constructor Summary
Constructors Constructor Description SyncMetastoreCallback()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
complete(int rc, T value, java.lang.Object ctx)
T
getResult()
-
-
-
Field Detail
-
rc
int rc
-
result
T result
-
doneLatch
final java.util.concurrent.CountDownLatch doneLatch
-
-
Method Detail
-
complete
public void complete(int rc, T value, java.lang.Object ctx)
- Specified by:
complete
in interfaceMetastoreCallback<T>
- See Also:
MSException.Code
-
getResult
public T getResult() throws MSException, java.lang.InterruptedException
- Throws:
MSException
java.lang.InterruptedException
-
-