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

public class HazelcastSemaphoreNamedLockFactory extends org.eclipse.aether.named.support.NamedLockFactorySupport
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 Details

  • Constructor Details

  • Method Details

    • createLock

      protected org.eclipse.aether.named.support.AdaptedSemaphoreNamedLock createLock(String name)
      Specified by:
      createLock in class org.eclipse.aether.named.support.NamedLockFactorySupport
    • destroyLock

      protected void destroyLock(String name)
      Overrides:
      destroyLock in class org.eclipse.aether.named.support.NamedLockFactorySupport
    • shutdown

      public void shutdown()
      Specified by:
      shutdown in interface org.eclipse.aether.named.NamedLockFactory
      Overrides:
      shutdown in class org.eclipse.aether.named.support.NamedLockFactorySupport