package org.infinispan.interceptors; import org.infinispan.commands.VisitableCommand; import org.infinispan.context.InvocationContext; /** * Base interface for all callbacks used by {@link BaseAsyncInterceptor} and {@link InvocationStage} methods. * * @author Dan Berindei * @since 9.0 */ @FunctionalInterface public interface InvocationCallback { Object apply(InvocationContext rCtx, VisitableCommand rCommand, Object rv, Throwable throwable) throws Throwable; }