org.wildfly.swarm.config.undertow.configuration.mod_cluster.balancer.node.ContextConsumer Maven / Gradle / Ivy
package org.wildfly.swarm.config.undertow.configuration.mod_cluster.balancer.node;
import org.wildfly.swarm.config.undertow.configuration.mod_cluster.balancer.node.Context;
import java.lang.FunctionalInterface;
@FunctionalInterface
public interface ContextConsumer> {
/**
* Configure a pre-constructed instance of Context resource
*
* @parameter Instance of Context to configure
* @return nothing
*/
void accept(T value);
default ContextConsumer andThen(ContextConsumer after) {
return (c) -> {
this.accept(c);
after.accept(c);
};
}
}