Skip to content

Commit

Permalink
merge from main
Browse files Browse the repository at this point in the history
  • Loading branch information
zdenek-jonas committed May 7, 2024
1 parent fe748d0 commit c4f07db
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docs/modules/misc/pages/integrations/spring-boot.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,21 @@ org.eclipse.store.second.auto-start=false
org.eclipse.store.second.root=org.eclipse.store.integrations.spring.boot.types.storages.SecondRoot
----

== Mutext Locking
== Mutex Locking
{product-name} supports mutex locking. This is useful if you have multiple processes that need to access the same objects. Easiest way to use it is to use the annotation `@read` and `@write` on the methods that need to be locked. The annotation @read is used for methods that only read data and @write is used for methods that modify data.

To activate mutex locking, you need to add the following dependency to Maven pom.xml of your SpringBoot application:

[source, xml, title="pom.xml", subs=attributes+]
----
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-aop</artifactId>
</dependency>
----

Then you can use the Mutex Locking in your code:

[source,java]
----
@Component
Expand Down

0 comments on commit c4f07db

Please sign in to comment.