Add distibuted action
- New module spring-statemachine-cluster which is based on spring-cloud-cluster to provide leader election. - Ensemble now has a concept of a leader if implementation supports it. - New DistributedLeaderAction can use leader info to execute action only on a leader. - Tweak web sample with these new concepts. - Fixes #176
This commit is contained in:
@@ -56,7 +56,7 @@ project('spring-statemachine-samples-persist') {
|
||||
project('spring-statemachine-samples-web') {
|
||||
description = 'Spring State Machine Web Sample'
|
||||
dependencies {
|
||||
compile project(":spring-statemachine-zookeeper")
|
||||
compile project(":spring-statemachine-cluster")
|
||||
compile("org.springframework.boot:spring-boot-starter-security:$springBootVersion")
|
||||
compile("org.springframework.boot:spring-boot-starter-web:$springBootVersion")
|
||||
compile("org.springframework.boot:spring-boot-starter-websocket:$springBootVersion")
|
||||
|
||||
Reference in New Issue
Block a user