Class TransitionData<S,E>
java.lang.Object
org.springframework.statemachine.config.model.TransitionData<S,E>
- Type Parameters:
S
- the type of stateE
- the type of event
A simple data object keeping transition related configs in a same place.
-
Constructor Summary
ConstructorDescriptionTransitionData
(S source, S target, E event) Instantiates a new transition data.TransitionData
(S source, S target, E event, Collection<Function<StateContext<S, E>, reactor.core.publisher.Mono<Void>>> actions, Function<StateContext<S, E>, reactor.core.publisher.Mono<Boolean>> guard, TransitionKind kind) Instantiates a new transition data.TransitionData
(S source, S target, E event, Collection<Function<StateContext<S, E>, reactor.core.publisher.Mono<Void>>> actions, Function<StateContext<S, E>, reactor.core.publisher.Mono<Boolean>> guard, TransitionKind kind, String name) Instantiates a new transition data.TransitionData
(S source, S target, Long period, Integer count, Collection<Function<StateContext<S, E>, reactor.core.publisher.Mono<Void>>> actions, Function<StateContext<S, E>, reactor.core.publisher.Mono<Boolean>> guard, TransitionKind kind) Instantiates a new transition data.TransitionData
(S source, S target, Long period, Integer count, Collection<Function<StateContext<S, E>, reactor.core.publisher.Mono<Void>>> actions, Function<StateContext<S, E>, reactor.core.publisher.Mono<Boolean>> guard, TransitionKind kind, String name) Instantiates a new transition data.TransitionData
(S source, S target, S state, E event, Long period, Integer count, Collection<Function<StateContext<S, E>, reactor.core.publisher.Mono<Void>>> actions, Function<StateContext<S, E>, reactor.core.publisher.Mono<Boolean>> guard, TransitionKind kind, SecurityRule securityRule, String name) Instantiates a new transition data. -
Method Summary
Modifier and TypeMethodDescriptionCollection<Function<StateContext<S,
E>, reactor.core.publisher.Mono<Void>>> Gets the actions.getCount()
Gets the count.getEvent()
Gets the event.Function<StateContext<S,
E>, reactor.core.publisher.Mono<Boolean>> getGuard()
Gets the guard.getKind()
Gets the kind.getName()
Gets the name,Gets the period.Gets the security rule.Gets the source.getState()
Gets the state.Gets the target.
-
Constructor Details
-
TransitionData
Instantiates a new transition data.- Parameters:
source
- the sourcetarget
- the targetevent
- the event
-
TransitionData
public TransitionData(S source, S target, E event, Collection<Function<StateContext<S, E>, reactor.core.publisher.Mono<Void>>> actions, Function<StateContext<S, E>, reactor.core.publisher.Mono<Boolean>> guard, TransitionKind kind) Instantiates a new transition data.- Parameters:
source
- the sourcetarget
- the targetevent
- the eventactions
- the actionsguard
- the guardkind
- the kind
-
TransitionData
public TransitionData(S source, S target, E event, Collection<Function<StateContext<S, E>, reactor.core.publisher.Mono<Void>>> actions, Function<StateContext<S, E>, reactor.core.publisher.Mono<Boolean>> guard, TransitionKind kind, String name) Instantiates a new transition data.- Parameters:
source
- the sourcetarget
- the targetevent
- the eventactions
- the actionsguard
- the guardkind
- the kindname
- the name
-
TransitionData
public TransitionData(S source, S target, Long period, Integer count, Collection<Function<StateContext<S, E>, reactor.core.publisher.Mono<Void>>> actions, Function<StateContext<S, E>, reactor.core.publisher.Mono<Boolean>> guard, TransitionKind kind) Instantiates a new transition data.- Parameters:
source
- the sourcetarget
- the targetperiod
- the periodcount
- the countactions
- the actionsguard
- the guardkind
- the kind
-
TransitionData
public TransitionData(S source, S target, Long period, Integer count, Collection<Function<StateContext<S, E>, reactor.core.publisher.Mono<Void>>> actions, Function<StateContext<S, E>, reactor.core.publisher.Mono<Boolean>> guard, TransitionKind kind, String name) Instantiates a new transition data.- Parameters:
source
- the sourcetarget
- the targetperiod
- the periodcount
- the countactions
- the actionsguard
- the guardkind
- the kindname
- the name
-
TransitionData
public TransitionData(S source, S target, S state, E event, Long period, Integer count, Collection<Function<StateContext<S, E>, reactor.core.publisher.Mono<Void>>> actions, Function<StateContext<S, E>, reactor.core.publisher.Mono<Boolean>> guard, TransitionKind kind, SecurityRule securityRule, String name) Instantiates a new transition data.- Parameters:
source
- the sourcetarget
- the targetstate
- the stateevent
- the eventperiod
- the periodcount
- the countactions
- the actionsguard
- the guardkind
- the kindsecurityRule
- the security rulename
- the name
-
-
Method Details
-
getSource
Gets the source.- Returns:
- the source
-
getTarget
Gets the target.- Returns:
- the target
-
getState
Gets the state.- Returns:
- the state
-
getEvent
Gets the event.- Returns:
- the event
-
getPeriod
Gets the period.- Returns:
- the period
-
getCount
Gets the count.- Returns:
- the count
-
getActions
Gets the actions.- Returns:
- the actions
-
getGuard
Gets the guard.- Returns:
- the guard
-
getKind
Gets the kind.- Returns:
- the kind
-
getSecurityRule
Gets the security rule.- Returns:
- the security rule
-
getName
Gets the name,- Returns:
- the name
-