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>
Oexecute(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 Detail
-
execute
default void execute(Runnable r)
-
execute
default <E> void execute(Consumer<? super E> logic, E element)
-
execute
default <E> void execute(ThrowingProcedure<? super E,?> logic, E element)
-
execute
default <O> O execute(Supplier<O> logic)
-
execute
default <I,O> O execute(Function<? super I,O> logic, I input)
-
hasDisruptions
boolean hasDisruptions()
-
reset
DisruptionCollector reset()
-
collectDisruption
DisruptionCollector collectDisruption(Throwable disruption)
-
yield
default XGettingCollection<Throwable> yield()
-
toMultiCauseException
MultiCauseException toMultiCauseException(int stackTraceCutDepth)
-
toArray
Throwable[] toArray()
-
toMultiCauseException
default MultiCauseException toMultiCauseException()
-
defaultCollectionSupplier
static Supplier<? extends XCollection<Throwable>> defaultCollectionSupplier()
-
New
static DisruptionCollector New()
-
New
static DisruptionCollector New(Supplier<? extends XCollection<Throwable>> collectionSupplier)
-
New
static DisruptionCollector New(XCollection<Throwable> collection)
-
-