Class StampedLockServiceExecutor
- java.lang.Object
-
- org.wildfly.clustering.ee.cache.concurrent.StampedLockServiceExecutor
-
- All Implemented Interfaces:
Executor,ServiceExecutor
public class StampedLockServiceExecutor extends Object implements ServiceExecutor
ServiceExecutorimplemented via aStampedLock.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description StampedLockServiceExecutor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose(Runnable closeTask)voidexecute(Runnable executeTask)<R> Optional<R>execute(Supplier<R> executeTask)<E extends Exception>
voidexecute(org.wildfly.common.function.ExceptionRunnable<E> executeTask)<R,E extends Exception>
Optional<R>execute(org.wildfly.common.function.ExceptionSupplier<R,E> executeTask)
-
-
-
Method Detail
-
execute
public <E extends Exception> void execute(org.wildfly.common.function.ExceptionRunnable<E> executeTask) throws E extends Exception
- Specified by:
executein interfaceServiceExecutor- Throws:
E extends Exception
-
execute
public <R> Optional<R> execute(Supplier<R> executeTask)
- Specified by:
executein interfaceServiceExecutor
-
execute
public <R,E extends Exception> Optional<R> execute(org.wildfly.common.function.ExceptionSupplier<R,E> executeTask) throws E extends Exception
- Specified by:
executein interfaceServiceExecutor- Throws:
E extends Exception
-
close
public void close(Runnable closeTask)
- Specified by:
closein interfaceServiceExecutor
-
-