Package io.activej.async.process
Class AbstractAsyncCloseable
java.lang.Object
io.activej.reactor.AbstractReactive
io.activej.reactor.ImplicitlyReactive
io.activej.async.process.AbstractAsyncCloseable
- All Implemented Interfaces:
AsyncCloseable,Reactive
-
Field Summary
Fields inherited from class io.activej.reactor.AbstractReactive
reactorFields inherited from interface io.activej.async.process.AsyncCloseable
STATIC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidCloses process exceptionally in case an exception is thrown while executing the given process.protected final <T> Promise<T>doSanitize(T value, @Nullable Exception e) @Nullable AsyncCloseablefinal booleanisClosed()protected voidprotected voidfinal <T> Promise<T>final voidsetCloseable(@Nullable AsyncCloseable closeable) Methods inherited from class io.activej.reactor.AbstractReactive
getReactorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.activej.async.process.AsyncCloseable
close
-
Constructor Details
-
AbstractAsyncCloseable
public AbstractAsyncCloseable()
-
-
Method Details
-
getException
-
getCloseable
-
setCloseable
-
onClosed
-
onCleanup
protected void onCleanup() -
closeEx
Description copied from interface:AsyncCloseableCloses process exceptionally in case an exception is thrown while executing the given process.- Specified by:
closeExin interfaceAsyncCloseable- Parameters:
e- exception that is used to close process with
-
isClosed
public final boolean isClosed() -
sanitize
-
doSanitize
-