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