Package one.microstream.storage.types
Interface DisruptionCollector
- All Known Subinterfaces:
DisruptionCollectorExecuting<E>
- All Known Implementing Classes:
DisruptionCollector.Default
,DisruptionCollectorExecuting.WrapperThrowingProcedure
public interface DisruptionCollector
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
DisruptionCollector.Default
-
Method Summary
Modifier and Type Method Description DisruptionCollector
collectDisruption(Throwable disruption)
static Supplier<? extends XCollection<Throwable>>
defaultCollectionSupplier()
default void
execute(Runnable r)
default <E> void
execute(Consumer<? super E> logic, E element)
default <I, O> O
execute(Function<? super I,O> logic, I input)
default <O> O
execute(Supplier<O> logic)
default <E> void
execute(ThrowingProcedure<? super E,?> logic, E element)
boolean
hasDisruptions()
static DisruptionCollector
New()
static DisruptionCollector
New(Supplier<? extends XCollection<Throwable>> collectionSupplier)
static DisruptionCollector
New(XCollection<Throwable> collection)
DisruptionCollector
reset()
Throwable[]
toArray()
default MultiCauseException
toMultiCauseException()
MultiCauseException
toMultiCauseException(int stackTraceCutDepth)
default XGettingCollection<Throwable>
yield()
<C extends Consumer<? super Throwable>>
Cyield(C target)
-
Method Details
-
execute
-
execute
-
execute
-
execute
-
execute
-
hasDisruptions
boolean hasDisruptions() -
reset
DisruptionCollector reset() -
collectDisruption
-
yield
-
yield
-
toMultiCauseException
-
toArray
Throwable[] toArray() -
toMultiCauseException
-
defaultCollectionSupplier
-
New
-
New
-
New
-