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