Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions maven-resolver-named-locks-hazelcast/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@

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

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

<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@
* Direct provider of {@link ISemaphore} instances: it simply uses the passed in lock name to create semaphore name out
* of it. This implies, that as many lock names are requested from it, this class will create as many semaphores in
* Hazelcast.
*
* @deprecated Hazelcast support will be dropped.
*/
@Deprecated
public class DirectHazelcastSemaphoreProvider extends HazelcastSemaphoreProvider {
@Override
public ISemaphore acquireSemaphore(HazelcastInstance hazelcastInstance, NamedLockKey key) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@

/**
* {@link HazelcastSemaphoreNamedLockFactory} using {@link DirectHazelcastSemaphoreProvider} full Hazelcast member.
*
* @deprecated Hazelcast support will be dropped.
*/
@Deprecated
@Singleton
@Named(HazelcastCPSemaphoreNamedLockFactory.NAME)
public class HazelcastCPSemaphoreNamedLockFactory extends HazelcastSemaphoreNamedLockFactory {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@
/**
* {@link HazelcastSemaphoreNamedLockFactory} using {@link DirectHazelcastSemaphoreProvider} and Hazelcast client. The
* client must be configured to connect to some existing cluster (w/ proper configuration applied).
*
* @deprecated Hazelcast support will be dropped.
*/
@Deprecated
@Singleton
@Named(HazelcastClientCPSemaphoreNamedLockFactory.NAME)
public class HazelcastClientCPSemaphoreNamedLockFactory extends HazelcastSemaphoreNamedLockFactory {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@
* Factory of {@link AdaptedSemaphoreNamedLock} instances, using adapted Hazelcast {@link ISemaphore}. It delegates
* most the work to {@link HazelcastSemaphoreProvider} and this class just adapts the returned semaphore to named lock
* and caches {@link ISemaphore} instances, as recommended by Hazelcast.
*
* @deprecated Hazelcast support will be dropped.
*/
@Deprecated
public class HazelcastSemaphoreNamedLockFactory extends NamedLockFactorySupport {
protected final HazelcastInstance hazelcastInstance;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@

/**
* Support class for providers of {@link ISemaphore} instances.
*
* @deprecated Hazelcast support will be dropped.
*/
@Deprecated
public abstract class HazelcastSemaphoreProvider {
/**
* Name prefix recommended using for simpler configuration of Hazelcast.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ specific language governing permissions and limitations
under the License.
-->

**Warning: Hazelcast support is deprecated; will be removed in next minor release.**

This module implement named locks using Hazelcast. It provides two implementations, using members or clients and
rely on Hazelcast ISemaphore instances.

Expand Down