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