com.tangosol.util.fsm.annotations.OnEnterState Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of coherence Show documentation
Show all versions of coherence Show documentation
Oracle Coherence Community Edition
/*
* 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();
}