org.wildfly.swarm.config.logging.AsyncHandlerConsumer Maven / Gradle / Ivy
package org.wildfly.swarm.config.logging;
import org.wildfly.swarm.config.logging.AsyncHandler;
import java.lang.FunctionalInterface;
@FunctionalInterface
public interface AsyncHandlerConsumer> {
/**
* Configure a pre-constructed instance of AsyncHandler resource
*
* @parameter Instance of AsyncHandler to configure
* @return nothing
*/
void accept(T value);
default AsyncHandlerConsumer andThen(AsyncHandlerConsumer after) {
return (c) -> {
this.accept(c);
after.accept(c);
};
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy