├── .github ├── dependabot.yml └── workflows │ ├── ci.yml │ └── release.yml ├── .gitignore ├── LICENSE ├── README.md ├── gradle ├── libs.versions.toml └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── settings.gradle.kts └── src ├── main ├── java │ └── pl │ │ └── allegro │ │ └── tech │ │ └── boot │ │ └── leader │ │ └── only │ │ ├── LeaderOnlyBeanPostProcessor.java │ │ ├── LeaderOnlyConfiguration.java │ │ ├── LeadershipProxyFactory.java │ │ ├── api │ │ ├── ConnectionStringCannotBeEmptyException.java │ │ ├── CuratorLeadershipCustomizer.java │ │ ├── Leader.java │ │ ├── LeaderLatchCannotStartException.java │ │ ├── LeaderLatchCannotStopException.java │ │ ├── LeaderOnly.java │ │ ├── Leadership.java │ │ ├── LeadershipAcquisitionCallback.java │ │ ├── LeadershipChangeCallbacks.java │ │ ├── LeadershipFactory.java │ │ └── LeadershipLossCallback.java │ │ └── curator │ │ ├── ConnectionStringConverter.java │ │ ├── CuratorLeadership.java │ │ ├── CuratorLeadershipConfiguration.java │ │ ├── CuratorLeadershipFactoryImpl.java │ │ └── CuratorLeadershipProperties.java └── resources │ └── META-INF │ └── spring │ └── org.springframework.boot.autoconfigure.AutoConfiguration.imports └── test └── java └── pl └── allegro └── tech └── boot └── leader └── only ├── api ├── LeaderChangeCallbacksTest.java ├── LeaderOnlyTest.java └── TestLeadership.java ├── curator ├── ConnectionStringConverterTest.java └── CuratorLeadershipTest.java └── fixtures ├── SampleApplication.java └── SampleLeaderOnlyExecutor.java /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allegro/leader-only-spring-boot-starter/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allegro/leader-only-spring-boot-starter/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allegro/leader-only-spring-boot-starter/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allegro/leader-only-spring-boot-starter/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allegro/leader-only-spring-boot-starter/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allegro/leader-only-spring-boot-starter/HEAD/README.md -------------------------------------------------------------------------------- /gradle/libs.versions.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allegro/leader-only-spring-boot-starter/HEAD/gradle/libs.versions.toml -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allegro/leader-only-spring-boot-starter/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allegro/leader-only-spring-boot-starter/HEAD/gradle/wrapper/gradle-wrapper.properties -------------------------------------------------------------------------------- /gradlew: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allegro/leader-only-spring-boot-starter/HEAD/gradlew -------------------------------------------------------------------------------- /gradlew.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allegro/leader-only-spring-boot-starter/HEAD/gradlew.bat -------------------------------------------------------------------------------- /settings.gradle.kts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allegro/leader-only-spring-boot-starter/HEAD/settings.gradle.kts -------------------------------------------------------------------------------- /src/main/java/pl/allegro/tech/boot/leader/only/LeaderOnlyBeanPostProcessor.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allegro/leader-only-spring-boot-starter/HEAD/src/main/java/pl/allegro/tech/boot/leader/only/LeaderOnlyBeanPostProcessor.java -------------------------------------------------------------------------------- /src/main/java/pl/allegro/tech/boot/leader/only/LeaderOnlyConfiguration.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allegro/leader-only-spring-boot-starter/HEAD/src/main/java/pl/allegro/tech/boot/leader/only/LeaderOnlyConfiguration.java -------------------------------------------------------------------------------- /src/main/java/pl/allegro/tech/boot/leader/only/LeadershipProxyFactory.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allegro/leader-only-spring-boot-starter/HEAD/src/main/java/pl/allegro/tech/boot/leader/only/LeadershipProxyFactory.java -------------------------------------------------------------------------------- /src/main/java/pl/allegro/tech/boot/leader/only/api/ConnectionStringCannotBeEmptyException.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allegro/leader-only-spring-boot-starter/HEAD/src/main/java/pl/allegro/tech/boot/leader/only/api/ConnectionStringCannotBeEmptyException.java -------------------------------------------------------------------------------- /src/main/java/pl/allegro/tech/boot/leader/only/api/CuratorLeadershipCustomizer.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allegro/leader-only-spring-boot-starter/HEAD/src/main/java/pl/allegro/tech/boot/leader/only/api/CuratorLeadershipCustomizer.java -------------------------------------------------------------------------------- /src/main/java/pl/allegro/tech/boot/leader/only/api/Leader.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allegro/leader-only-spring-boot-starter/HEAD/src/main/java/pl/allegro/tech/boot/leader/only/api/Leader.java -------------------------------------------------------------------------------- /src/main/java/pl/allegro/tech/boot/leader/only/api/LeaderLatchCannotStartException.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allegro/leader-only-spring-boot-starter/HEAD/src/main/java/pl/allegro/tech/boot/leader/only/api/LeaderLatchCannotStartException.java -------------------------------------------------------------------------------- /src/main/java/pl/allegro/tech/boot/leader/only/api/LeaderLatchCannotStopException.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allegro/leader-only-spring-boot-starter/HEAD/src/main/java/pl/allegro/tech/boot/leader/only/api/LeaderLatchCannotStopException.java -------------------------------------------------------------------------------- /src/main/java/pl/allegro/tech/boot/leader/only/api/LeaderOnly.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allegro/leader-only-spring-boot-starter/HEAD/src/main/java/pl/allegro/tech/boot/leader/only/api/LeaderOnly.java -------------------------------------------------------------------------------- /src/main/java/pl/allegro/tech/boot/leader/only/api/Leadership.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allegro/leader-only-spring-boot-starter/HEAD/src/main/java/pl/allegro/tech/boot/leader/only/api/Leadership.java -------------------------------------------------------------------------------- /src/main/java/pl/allegro/tech/boot/leader/only/api/LeadershipAcquisitionCallback.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allegro/leader-only-spring-boot-starter/HEAD/src/main/java/pl/allegro/tech/boot/leader/only/api/LeadershipAcquisitionCallback.java -------------------------------------------------------------------------------- /src/main/java/pl/allegro/tech/boot/leader/only/api/LeadershipChangeCallbacks.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allegro/leader-only-spring-boot-starter/HEAD/src/main/java/pl/allegro/tech/boot/leader/only/api/LeadershipChangeCallbacks.java -------------------------------------------------------------------------------- /src/main/java/pl/allegro/tech/boot/leader/only/api/LeadershipFactory.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allegro/leader-only-spring-boot-starter/HEAD/src/main/java/pl/allegro/tech/boot/leader/only/api/LeadershipFactory.java -------------------------------------------------------------------------------- /src/main/java/pl/allegro/tech/boot/leader/only/api/LeadershipLossCallback.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allegro/leader-only-spring-boot-starter/HEAD/src/main/java/pl/allegro/tech/boot/leader/only/api/LeadershipLossCallback.java -------------------------------------------------------------------------------- /src/main/java/pl/allegro/tech/boot/leader/only/curator/ConnectionStringConverter.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allegro/leader-only-spring-boot-starter/HEAD/src/main/java/pl/allegro/tech/boot/leader/only/curator/ConnectionStringConverter.java -------------------------------------------------------------------------------- /src/main/java/pl/allegro/tech/boot/leader/only/curator/CuratorLeadership.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allegro/leader-only-spring-boot-starter/HEAD/src/main/java/pl/allegro/tech/boot/leader/only/curator/CuratorLeadership.java -------------------------------------------------------------------------------- /src/main/java/pl/allegro/tech/boot/leader/only/curator/CuratorLeadershipConfiguration.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allegro/leader-only-spring-boot-starter/HEAD/src/main/java/pl/allegro/tech/boot/leader/only/curator/CuratorLeadershipConfiguration.java -------------------------------------------------------------------------------- /src/main/java/pl/allegro/tech/boot/leader/only/curator/CuratorLeadershipFactoryImpl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allegro/leader-only-spring-boot-starter/HEAD/src/main/java/pl/allegro/tech/boot/leader/only/curator/CuratorLeadershipFactoryImpl.java -------------------------------------------------------------------------------- /src/main/java/pl/allegro/tech/boot/leader/only/curator/CuratorLeadershipProperties.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allegro/leader-only-spring-boot-starter/HEAD/src/main/java/pl/allegro/tech/boot/leader/only/curator/CuratorLeadershipProperties.java -------------------------------------------------------------------------------- /src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allegro/leader-only-spring-boot-starter/HEAD/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports -------------------------------------------------------------------------------- /src/test/java/pl/allegro/tech/boot/leader/only/api/LeaderChangeCallbacksTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allegro/leader-only-spring-boot-starter/HEAD/src/test/java/pl/allegro/tech/boot/leader/only/api/LeaderChangeCallbacksTest.java -------------------------------------------------------------------------------- /src/test/java/pl/allegro/tech/boot/leader/only/api/LeaderOnlyTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allegro/leader-only-spring-boot-starter/HEAD/src/test/java/pl/allegro/tech/boot/leader/only/api/LeaderOnlyTest.java -------------------------------------------------------------------------------- /src/test/java/pl/allegro/tech/boot/leader/only/api/TestLeadership.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allegro/leader-only-spring-boot-starter/HEAD/src/test/java/pl/allegro/tech/boot/leader/only/api/TestLeadership.java -------------------------------------------------------------------------------- /src/test/java/pl/allegro/tech/boot/leader/only/curator/ConnectionStringConverterTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allegro/leader-only-spring-boot-starter/HEAD/src/test/java/pl/allegro/tech/boot/leader/only/curator/ConnectionStringConverterTest.java -------------------------------------------------------------------------------- /src/test/java/pl/allegro/tech/boot/leader/only/curator/CuratorLeadershipTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allegro/leader-only-spring-boot-starter/HEAD/src/test/java/pl/allegro/tech/boot/leader/only/curator/CuratorLeadershipTest.java -------------------------------------------------------------------------------- /src/test/java/pl/allegro/tech/boot/leader/only/fixtures/SampleApplication.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allegro/leader-only-spring-boot-starter/HEAD/src/test/java/pl/allegro/tech/boot/leader/only/fixtures/SampleApplication.java -------------------------------------------------------------------------------- /src/test/java/pl/allegro/tech/boot/leader/only/fixtures/SampleLeaderOnlyExecutor.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allegro/leader-only-spring-boot-starter/HEAD/src/test/java/pl/allegro/tech/boot/leader/only/fixtures/SampleLeaderOnlyExecutor.java --------------------------------------------------------------------------------