Skip to content

Commit f37e419

Browse files
authored
GH-1603 Deprecate Hazelcast support (#1615)
Deprecate whole module. Fixes #1603
1 parent b0657a5 commit f37e419

File tree

7 files changed

+19
-2
lines changed

7 files changed

+19
-2
lines changed

maven-resolver-named-locks-hazelcast/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828

2929
<artifactId>maven-resolver-named-locks-hazelcast</artifactId>
3030

31-
<name>Maven Artifact Resolver Named Locks using Hazelcast</name>
32-
<description>A synchronization utility implementation using Hazelcast.</description>
31+
<name>Maven Artifact Resolver Named Locks using Hazelcast (deprecated)</name>
32+
<description>A synchronization utility implementation using Hazelcast (deprecated).</description>
3333

3434
<dependencies>
3535
<dependency>

maven-resolver-named-locks-hazelcast/src/main/java/org/eclipse/aether/named/hazelcast/DirectHazelcastSemaphoreProvider.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@
2626
* Direct provider of {@link ISemaphore} instances: it simply uses the passed in lock name to create semaphore name out
2727
* of it. This implies, that as many lock names are requested from it, this class will create as many semaphores in
2828
* Hazelcast.
29+
*
30+
* @deprecated Hazelcast support will be dropped.
2931
*/
32+
@Deprecated
3033
public class DirectHazelcastSemaphoreProvider extends HazelcastSemaphoreProvider {
3134
@Override
3235
public ISemaphore acquireSemaphore(HazelcastInstance hazelcastInstance, NamedLockKey key) {

maven-resolver-named-locks-hazelcast/src/main/java/org/eclipse/aether/named/hazelcast/HazelcastCPSemaphoreNamedLockFactory.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@
2727

2828
/**
2929
* {@link HazelcastSemaphoreNamedLockFactory} using {@link DirectHazelcastSemaphoreProvider} full Hazelcast member.
30+
*
31+
* @deprecated Hazelcast support will be dropped.
3032
*/
33+
@Deprecated
3134
@Singleton
3235
@Named(HazelcastCPSemaphoreNamedLockFactory.NAME)
3336
public class HazelcastCPSemaphoreNamedLockFactory extends HazelcastSemaphoreNamedLockFactory {

maven-resolver-named-locks-hazelcast/src/main/java/org/eclipse/aether/named/hazelcast/HazelcastClientCPSemaphoreNamedLockFactory.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@
2828
/**
2929
* {@link HazelcastSemaphoreNamedLockFactory} using {@link DirectHazelcastSemaphoreProvider} and Hazelcast client. The
3030
* client must be configured to connect to some existing cluster (w/ proper configuration applied).
31+
*
32+
* @deprecated Hazelcast support will be dropped.
3133
*/
34+
@Deprecated
3235
@Singleton
3336
@Named(HazelcastClientCPSemaphoreNamedLockFactory.NAME)
3437
public class HazelcastClientCPSemaphoreNamedLockFactory extends HazelcastSemaphoreNamedLockFactory {

maven-resolver-named-locks-hazelcast/src/main/java/org/eclipse/aether/named/hazelcast/HazelcastSemaphoreNamedLockFactory.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@
3636
* Factory of {@link AdaptedSemaphoreNamedLock} instances, using adapted Hazelcast {@link ISemaphore}. It delegates
3737
* most the work to {@link HazelcastSemaphoreProvider} and this class just adapts the returned semaphore to named lock
3838
* and caches {@link ISemaphore} instances, as recommended by Hazelcast.
39+
*
40+
* @deprecated Hazelcast support will be dropped.
3941
*/
42+
@Deprecated
4043
public class HazelcastSemaphoreNamedLockFactory extends NamedLockFactorySupport {
4144
protected final HazelcastInstance hazelcastInstance;
4245

maven-resolver-named-locks-hazelcast/src/main/java/org/eclipse/aether/named/hazelcast/HazelcastSemaphoreProvider.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@
2424

2525
/**
2626
* Support class for providers of {@link ISemaphore} instances.
27+
*
28+
* @deprecated Hazelcast support will be dropped.
2729
*/
30+
@Deprecated
2831
public abstract class HazelcastSemaphoreProvider {
2932
/**
3033
* Name prefix recommended using for simpler configuration of Hazelcast.

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ specific language governing permissions and limitations
1919
under the License.
2020
-->
2121

22+
**Warning: Hazelcast support is deprecated; will be removed in next minor release.**
23+
2224
This module implement named locks using Hazelcast. It provides two implementations, using members or clients and
2325
rely on Hazelcast ISemaphore instances.
2426

0 commit comments

Comments
 (0)