Debian Codegraph @

maven-resolver-named-locks-redisson/src/site/markdown/index.md.vm

raw
1 ${esc.hash} Named Locks using Redisson
2
3 <!--
4 Licensed to the Apache Software Foundation (ASF) under one
5 or more contributor license agreements. See the NOTICE file
6 distributed with this work for additional information
7 regarding copyright ownership. The ASF licenses this file
8 to you under the Apache License, Version 2.0 (the
9 "License"); you may not use this file except in compliance
10 with the License. You may obtain a copy of the License at
11
12 http://www.apache.org/licenses/LICENSE-2.0
13
14 Unless required by applicable law or agreed to in writing,
15 software distributed under the License is distributed on an
16 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 KIND, either express or implied. See the License for the
18 specific language governing permissions and limitations
19 under the License.
20 -->
21
22 This module implement named locks using Redisson. It provides two implementations, that are distributed and rely on
23 Redisson distributed objects feature.
24
25 Out of the box "redisson" (distributed) named lock implementations are the following:
26
27 - `rwlock-redisson` implemented in `org.eclipse.aether.named.redisson.RedissonReadWriteLockNamedLockFactory`
28 that uses Redisson-backed `org.redisson.api.RReadWriteLock`.
29 - `semaphore-redisson` implemented in `org.eclipse.aether.named.redisson.RedissonSemaphoreNamedLockFactory`
30 that uses Redisson-backed `org.redisson.api.RSemaphore`.
31
32 ${esc.hash}${esc.hash} Open Issues/Notes
33
34 - Usage from plugins and extensions hasn't been fully tested yet.
35
36 ${esc.hash}${esc.hash} Open Issues/Notes for Maven Resolver integrators
37
38 To use this implementation within your project, depending on how you integrate, you have following options:
39 - If you use Sisu DI, then all you need is to provide this module (and its dependencies) on classpath and you are done.
40 - If you use Guice, you need to add this module (and its dependencies) upfront, and bind them explicitly.
41 - If you use ServiceLocator, this module will not work.
42
43 ${esc.hash}${esc.hash} Installation/Testing
44
45 - Create the directory `${maven.home}/lib/ext/redisson/` (if it does not exist).
46 - Unzip the following bundle from Maven Central to `${maven.home}/lib/ext/redisson/`:
47 <pre class="source">
48 └── <a href="https://repo.maven.apache.org/maven2/org/apache/maven/resolver/${project.artifactId}/${project.version}/${project.artifactId}-${project.version}-bundle.zip">${project.artifactId}-${project.version}-bundle.zip</a></pre>
49 - Start your Redis instance on `localhost` or configure a remote instance with `${maven.conf}/maven-resolver-redisson.yaml`.
50 - Now start a multithreaded Maven build or multiple builds (e.g., CI server) on your project.
51