Class Fate<T>

  • public class Fate<T>
    extends Object
    Fault tolerant executor
    • Constructor Detail

      • Fate

        public Fate​(T environment,
                    TStore<T> store)
        Creates a Fault-tolerant executor.

        Note: Users of this class should call startTransactionRunners(int) to launch the worker threads after creating a Fate object.

    • Method Detail

      • startTransactionRunners

        public void startTransactionRunners​(int numThreads)
        Launches the specified number of worker threads.
      • startTransaction

        public long startTransaction()
      • seedTransaction

        public void seedTransaction​(long tid,
                                    Repo<T> repo,
                                    boolean autoCleanUp)
      • delete

        public void delete​(long tid)
      • getReturn

        public String getReturn​(long tid)
      • getException

        public Exception getException​(long tid)
      • shutdown

        public void shutdown()
        Flags that FATE threadpool to clear out and end. Does not actively stop running FATE processes.