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