Class HazelcastSemaphoreNamedLockFactory

java.lang.Object
org.eclipse.aether.named.support.NamedLockFactorySupport
org.eclipse.aether.named.hazelcast.HazelcastSemaphoreNamedLockFactory
All Implemented Interfaces:
org.eclipse.aether.named.NamedLockFactory
Direct Known Subclasses:
HazelcastClientCPSemaphoreNamedLockFactory, HazelcastCPSemaphoreNamedLockFactory

@Deprecated public class HazelcastSemaphoreNamedLockFactory extends org.eclipse.aether.named.support.NamedLockFactorySupport
Deprecated.
Hazelcast support will be dropped.
Factory of AdaptedSemaphoreNamedLock instances, using adapted Hazelcast ISemaphore. It delegates most the work to HazelcastSemaphoreProvider and this class just adapts the returned semaphore to named lock and caches ISemaphore instances, as recommended by Hazelcast.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final com.hazelcast.core.HazelcastInstance
    Deprecated.
     
    protected final boolean
    Deprecated.
     

    Fields inherited from class org.eclipse.aether.named.support.NamedLockFactorySupport

    logger, SYSTEM_PROP_DIAGNOSTIC_ENABLED
  • Constructor Summary

    Constructors
    Constructor
    Description
    HazelcastSemaphoreNamedLockFactory(com.hazelcast.core.HazelcastInstance hazelcastInstance, boolean manageHazelcast, HazelcastSemaphoreProvider hazelcastSemaphoreProvider)
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.eclipse.aether.named.support.AdaptedSemaphoreNamedLock
    createLock(org.eclipse.aether.named.NamedLockKey key)
    Deprecated.
     
    protected void
    destroyLock(org.eclipse.aether.named.NamedLock namedLock)
    Deprecated.
     
    protected void
    Deprecated.
     

    Methods inherited from class org.eclipse.aether.named.support.NamedLockFactorySupport

    closeLock, doGetLock, getLock, getLockAndRefTrack, isDiagnosticEnabled, onFailure, shutdown

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.eclipse.aether.named.NamedLockFactory

    getLock
  • Field Details

    • hazelcastInstance

      protected final com.hazelcast.core.HazelcastInstance hazelcastInstance
      Deprecated.
    • manageHazelcast

      protected final boolean manageHazelcast
      Deprecated.
  • Constructor Details

  • Method Details

    • createLock

      protected org.eclipse.aether.named.support.AdaptedSemaphoreNamedLock createLock(org.eclipse.aether.named.NamedLockKey key)
      Deprecated.
      Specified by:
      createLock in class org.eclipse.aether.named.support.NamedLockFactorySupport
    • destroyLock

      protected void destroyLock(org.eclipse.aether.named.NamedLock namedLock)
      Deprecated.
      Overrides:
      destroyLock in class org.eclipse.aether.named.support.NamedLockFactorySupport
    • doShutdown

      protected void doShutdown()
      Deprecated.
      Overrides:
      doShutdown in class org.eclipse.aether.named.support.NamedLockFactorySupport