CONTEXT_TYPE - type of the tx operation contextpublic abstract class TransactionalDatasetRegistry<CONTEXT_TYPE extends TxContext> extends UncaughtExceptionIdleService
| Constructor and Description |
|---|
TransactionalDatasetRegistry(TransactionSystemClientService txClient) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract CONTEXT_TYPE |
createContext() |
<RETURN_TYPE> |
execute(TxCallable<CONTEXT_TYPE,RETURN_TYPE> tx) |
<RETURN_TYPE> |
executeUnchecked(TxCallable<CONTEXT_TYPE,RETURN_TYPE> tx) |
protected org.slf4j.Logger |
getUncaughtExceptionLogger() |
protected void |
startUp() |
executor, newHandlerpublic TransactionalDatasetRegistry(TransactionSystemClientService txClient)
protected void startUp()
throws Exception
startUp in class com.google.common.util.concurrent.AbstractIdleServiceExceptionpublic <RETURN_TYPE> RETURN_TYPE execute(TxCallable<CONTEXT_TYPE,RETURN_TYPE> tx) throws co.cask.tephra.TransactionFailureException, IOException, DatasetManagementException, InterruptedException
co.cask.tephra.TransactionFailureExceptionIOExceptionDatasetManagementExceptionInterruptedExceptionpublic <RETURN_TYPE> RETURN_TYPE executeUnchecked(TxCallable<CONTEXT_TYPE,RETURN_TYPE> tx)
protected abstract CONTEXT_TYPE createContext() throws IOException, DatasetManagementException
protected org.slf4j.Logger getUncaughtExceptionLogger()
getUncaughtExceptionLogger in class UncaughtExceptionIdleServiceCopyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.