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