lock4j-spring-boot-starter 2.1.0 Release Overview

lock4j-spring-boot-starter is a Spring Boot distributed lock library that provides simple yet powerful locking capabilities with support for Redisson, RedisTemplate, and Zookeeper, and the 2.1.0 release adds global configuration, executor enhancements, default priority ordering, and both declarative and programmatic usage options.

Laravel Tech Community
Laravel Tech Community
Laravel Tech Community
lock4j-spring-boot-starter 2.1.0 Release Overview

lock4j-spring-boot-starter is a distributed lock component that aims to be simple yet feature‑rich and highly extensible.

It supports multiple back‑ends such as Redisson, RedisTemplate, and Zookeeper, and can be mixed or extended.

2.1.0

feat: added Lock4jProperties for global configuration of lock expiration, acquisition timeout, default executor, etc.

update: renamed the lockClient parameter in the Lock4j annotation to executor.

update: added support for custom lock executors and method‑level executor configuration.

update: changed lock executor to a singleton.

remove: deleted the lockType parameter from the Lock4j annotation.

remove: deleted the keyBuilder parameter (custom keyBuilder requires implementing LockKeyBuilder and declaring as a Spring bean).

fix: fixed ClassNotFoundException when lockExecutor class is missing.

feat: added default executor priority order redisson > redisTemplate > zookeeper when no executor is specified.

remove: deleted the LockFailureStrategy parameter from the annotation (custom failure handling requires implementing LockFailureStrategy and declaring as a bean).

feat: supports declarative @Lock4j and programmatic @Autowired LockTemplate usage.

Features

Simple to use, powerful, and highly extensible.

Supports Redisson, RedisTemplate, and Zookeeper; can be mixed and extended.

lock4j diagram
lock4j diagram
Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

BackendJavaredisZooKeeperSpring Bootdistributed-lock
Laravel Tech Community
Written by

Laravel Tech Community

Specializing in Laravel development, we continuously publish fresh content and grow alongside the elegant, stable Laravel framework.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.