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