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