Class TaskMutexService<K>

    • Constructor Detail

      • TaskMutexService

        public TaskMutexService()
    • Method Detail

      • getExecutorService

        protected abstract java.util.concurrent.ExecutorService getExecutorService()
      • execute

        public <V> java.util.concurrent.Future<V> execute​(K mutexKey,
                                                          java.util.concurrent.Callable<V> task)
                                                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • execute

        public void execute​(K mutexKey,
                            java.lang.Runnable task)
                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • execute

        public <V> java.util.concurrent.Future<V> execute​(K mutexKey,
                                                          java.lang.Runnable task,
                                                          V result)
                                                   throws java.lang.Exception
        Throws:
        java.lang.Exception