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

org.infinispan.remoting.inboundhandler.action.CheckTopologyAction Maven / Gradle / Ivy

package org.infinispan.remoting.inboundhandler.action;

import org.infinispan.remoting.inboundhandler.BasePerCacheInboundInvocationHandler;

/**
 * An {@link Action} implementation that checks if the command topology id is valid.
 * 

* The command topology id is valid when it is higher or equal thant the first topology as member for this node. * * @author Pedro Ruivo * @since 8.0 */ public class CheckTopologyAction implements Action { private final BasePerCacheInboundInvocationHandler handler; public CheckTopologyAction(BasePerCacheInboundInvocationHandler handler) { this.handler = handler; } @Override public ActionStatus check(ActionState state) { return handler.isCommandSentBeforeFirstTopology(state.getCommandTopologyId()) ? ActionStatus.CANCELED : ActionStatus.READY; } @Override public void addListener(ActionListener listener) { //no-op } @Override public void cleanup(ActionState state) { //no-op } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy