/** * Convenience for {@link #peekSnapshotP(DistributedFunction, * DistributedPredicate, ProcessorMetaSupplier) peekSnapshot(toStringFn, * shouldLogFn, metaSupplier} with a pass-through filter and {@code * Object#toString} as the formatting function. This variant accepts a * {@code ProcessorSupplier} instead of a meta-supplier. */ @Nonnull public static ProcessorSupplier peekSnapshotP(@Nonnull ProcessorSupplier wrapped) { return peekSnapshotP(Object::toString, alwaysTrue(), wrapped); } }
/** * Convenience for {@link #peekSnapshotP(DistributedFunction, * DistributedPredicate, ProcessorMetaSupplier) peekSnapshot(toStringFn, * shouldLogFn, metaSupplier} with a pass-through filter and {@code * Object#toString} as the formatting function. */ @Nonnull public static ProcessorMetaSupplier peekSnapshotP(@Nonnull ProcessorMetaSupplier wrapped) { return peekSnapshotP(Object::toString, alwaysTrue(), wrapped); }
/** * Convenience for {@link #peekSnapshotP(DistributedFunction, * DistributedPredicate, ProcessorMetaSupplier) peekSnapshot(toStringFn, * shouldLogFn, metaSupplier} with a pass-through filter and {@code * Object#toString} as the formatting function. This variant accepts a * {@code DistributedSupplier} of processors instead of a meta-supplier. */ @Nonnull public static DistributedSupplier<Processor> peekSnapshotP(@Nonnull DistributedSupplier<Processor> wrapped) { return peekSnapshotP(Object::toString, alwaysTrue(), wrapped); }