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

com.tangosol.util.fsm.FiniteStateMachineListener Maven / Gradle / Ivy

There is a newer version: 24.03
Show newest version
/*
 * Copyright (c) 2000, 2020, Oracle and/or its affiliates.
 *
 * Licensed under the Universal Permissive License v 1.0 as shown at
 * http://oss.oracle.com/licenses/upl.
 */
package com.tangosol.util.fsm;

/**
 * A FiniteStateMachineListener listens for state related events on a {@link FiniteStateMachine}.
 *
 * @author pfm  2013.04.17
 * @since Coherence 12.2.1
 */
public interface FiniteStateMachineListener>
    {
    /**
     * Called during a state transition immediately before a {@link FiniteStateMachine}
     * enters a particular state.
     *
     * @param stateFrom  the state that the FiniteStateMachine is leaving
     * @param stateTo    the state that the FiniteStateMachine is entering
     */
    public void onTransition(S stateFrom, S stateTo);
    }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy