Uses of Interface
org.wildfly.clustering.function.Consumer
Packages that use Consumer
Package
Description
-
Uses of Consumer in org.wildfly.clustering.function
Classes in org.wildfly.clustering.function that implement ConsumerModifier and TypeClassDescriptionstatic classConsumer.ExceptionLogger<E extends Exception>A consumer of an exception that logs its parameter.Fields in org.wildfly.clustering.function declared as ConsumerModifier and TypeFieldDescriptionstatic final Consumer<?> Consumer.EMPTYA consumer that does nothing with its parameterFields in org.wildfly.clustering.function with type parameters of type ConsumerModifier and TypeFieldDescriptionstatic final Function<System.Logger.Level, Consumer<Exception>> Consumer.EXCEPTION_LOGGERA function returning the exception logger for a given levelstatic final Map<System.Logger.Level, Consumer<Exception>> Consumer.EXCEPTION_LOGGERSA map of exception logging consumers per levelMethods in org.wildfly.clustering.function that return ConsumerModifier and TypeMethodDescriptionstatic <V> Consumer<V> Returns a composite consumer that delegates to zero or more consumers.DoubleConsumer.boxed()Returns a boxed version of this consumer.IntConsumer.boxed()Returns a boxed version of this consumer.LongConsumer.boxed()Returns a boxed version of this consumer.static <V extends AutoCloseable>
Consumer<V> Consumer.close()Returns a consumer that silently closes its object.static <V extends AutoCloseable>
Consumer<V> Returns a consumer that silently closes its object using the specified exception handler.default <V> Consumer<V> Composes a consumer that invokes this consumer using result of the specified function.default <V> Consumer<V> DoubleConsumer.compose(ToDoubleFunction<V> composer) Composes a consumer that invokes this consumer using result of the specified function.default <V> Consumer<V> IntConsumer.compose(ToIntFunction<V> composer) Composes a consumer that invokes this consumer using result of the specified function.default <V> Consumer<V> LongConsumer.compose(ToLongFunction<V> composer) Composes a consumer that invokes this consumer using result of the specified function.default <V> Consumer<V> BiConsumer.composeUnary(Function<? super V, T> mapper1, Function<? super V, U> mapper2) Composes a unary consumer using the specified parameter mapping functions.Consumer.debug()Returns a consumer that logs an exception at theSystem.Logger.Level.DEBUGlevel.static <V> Consumer<V> Consumer.empty()Returns a consumer that performs no action.Consumer.error()Returns a consumer that logs an exception at theSystem.Logger.Level.ERRORlevel.Consumer.handle(BiConsumer<T, RuntimeException> handler) Returns a new consumer that delegates to the specified handler in the event of an exception.Consumer.info()Returns a consumer that logs an exception at theSystem.Logger.Level.INFOlevel.Consumer.log(System.Logger.Level level) Returns a consumer that logs an exception at the specified level.static <V> Consumer<V> Returns a consumer that runs the specified task, ignoring its parameter.Consumer.throwing(Function<E, ? extends RuntimeException> exceptionFactory) Returns a consumer that wraps an exception as a runtime exception via the specified factory.Consumer.warning()Returns a consumer that logs an exception at theSystem.Logger.Level.WARNINGlevel.Returns a consumer that conditionally invokes this consumer when allowed by the specified predicate.Consumer.withDefault(Predicate<T> predicate, Supplier<T> defaultValue) Returns a consumer that accepts the value returned by the specified default provider if its value does not match the specified predicate.Consumer.withMonitor(Function<T, M> monitorFunction) Returns a new consumer that accepts its value while holding the monitor returned by the specified function.Methods in org.wildfly.clustering.function with parameters of type ConsumerModifier and TypeMethodDescriptiondefault RunnerRunner.handle(Consumer<RuntimeException> handler) Returns a new runnable that delegates to the specified handler in the event of an exception.default RunnerSupplier.thenAccept(Consumer<T> consumer) Returns aRunnablethat consumes the supplied value. -
Uses of Consumer in org.wildfly.clustering.server.infinispan.scheduler
Classes in org.wildfly.clustering.server.infinispan.scheduler that implement ConsumerModifier and TypeClassDescriptionclassCacheEntriesTask<K,V> Invokes a task against cache entries matching a filter.classCacheKeysTask<K,V> Invokes a task against cache entries matching a filter.Methods in org.wildfly.clustering.server.infinispan.scheduler that return ConsumerModifier and TypeMethodDescriptionstatic <I, K extends Key<I>, V, M>
Consumer<CacheStreamFilter<Map.Entry<K, V>>> CacheEntriesTask.cancel(org.infinispan.Cache<K, V> cache, Predicate<Map.Entry<? super K, ? super V>> filter, CacheEntryScheduler<K, V> scheduler) Creates a task that cancels entries matching the specified filter.static <K,V> Consumer <CacheStreamFilter<K>> CacheKeysTask.cancel(org.infinispan.Cache<K, V> cache, Predicate<? super K> filter, CacheEntryScheduler<K, V> scheduler) Creates a schedule task for keys matching the specified filter.static <I, K extends Key<I>, V, M>
Consumer<CacheStreamFilter<Map.Entry<K, V>>> CacheEntriesTask.schedule(org.infinispan.Cache<K, V> cache, Predicate<Map.Entry<? super K, ? super V>> filter, CacheEntryScheduler<K, V> scheduler) Creates a task that schedules entries matching the specified filter.