public class Fate<T> extends Object
Constructor and Description |
---|
Fate(T environment,
TStore<T> store)
Creates a Fault-tolerant executor.
|
Modifier and Type | Method and Description |
---|---|
void |
delete(long tid) |
Exception |
getException(long tid) |
String |
getReturn(long tid) |
void |
seedTransaction(long tid,
Repo<T> repo,
boolean autoCleanUp) |
void |
shutdown()
Flags that FATE threadpool to clear out and end.
|
long |
startTransaction() |
void |
startTransactionRunners(int numThreads)
Launches the specified number of worker threads.
|
ReadOnlyTStore.TStatus |
waitForCompletion(long tid) |
public Fate(T environment, TStore<T> store)
Note: Users of this class should call startTransactionRunners(int)
to launch the
worker threads after creating a Fate object.
public void startTransactionRunners(int numThreads)
public long startTransaction()
public ReadOnlyTStore.TStatus waitForCompletion(long tid)
public void delete(long tid)
public String getReturn(long tid)
public Exception getException(long tid)
public void shutdown()
Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.