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

com.tangosol.util.fsm.annotations.OnEnterState Maven / Gradle / Ivy

There is a newer version: 24.09
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.annotations;

import com.tangosol.util.fsm.Event;
import com.tangosol.util.fsm.ExecutionContext;
import com.tangosol.util.fsm.FiniteStateMachine;
import com.tangosol.util.fsm.StateEntryAction;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Defines a {@link StateEntryAction} that should be  executed when a
 * {@link FiniteStateMachine} reaches a specified state.
 * 

* Note: The signature of the annotated method should be the same as that * defined by {@link StateEntryAction#onEnterState(Enum, Enum, Event, ExecutionContext)} *

* * @author Brian Oliver * @since Coherence 12.2.1 */ @Target(ElementType.METHOD) @Retention(RetentionPolicy.RUNTIME) public @interface OnEnterState { /** * The name of the state being entered. */ String value(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy