All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.interceptors.InvocationFinallyHandler Maven / Gradle / Ivy

There is a newer version: 9.1.7.Final
Show newest version
package org.infinispan.interceptors;

import org.infinispan.commands.VisitableCommand;
import org.infinispan.context.InvocationContext;

/**
 * Callback interface for {@link InvocationStage#handle(InvocationFinallyHandler)}.
 *
 * @author Dan Berindei
 * @since 9.0
 */
@FunctionalInterface
public interface InvocationFinallyHandler extends InvocationComposeHandler {
   void accept(InvocationContext rCtx, VisitableCommand rCommand, Object rv, Throwable t) throws Throwable;

   @Override
   default BasicInvocationStage apply(BasicInvocationStage stage, InvocationContext rCtx,
                                  VisitableCommand rCommand, Object rv, Throwable t)
         throws Throwable {
      accept(rCtx, rCommand, rv, t);
      return stage;
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy