Class HazelcastSemaphoreProvider

java.lang.Object
org.eclipse.aether.named.hazelcast.HazelcastSemaphoreProvider
Direct Known Subclasses:
DirectHazelcastSemaphoreProvider

public abstract class HazelcastSemaphoreProvider extends Object
Support class for providers of ISemaphore instances.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final String
    Name prefix recommended using for simpler configuration of Hazelcast.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract com.hazelcast.cp.ISemaphore
    acquireSemaphore(com.hazelcast.core.HazelcastInstance hazelcastInstance, NamedLockKey key)
    Invoked when new instance of semaphore needed for given key.
    abstract void
    releaseSemaphore(com.hazelcast.core.HazelcastInstance hazelcastInstance, NamedLockKey key, com.hazelcast.cp.ISemaphore semaphore)
    Invoked when passed in semaphore associated with passed in key is not to be used anymore.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • acquireSemaphore

      public abstract com.hazelcast.cp.ISemaphore acquireSemaphore(com.hazelcast.core.HazelcastInstance hazelcastInstance, NamedLockKey key)
      Invoked when new instance of semaphore needed for given key. must not return null.
    • releaseSemaphore

      public abstract void releaseSemaphore(com.hazelcast.core.HazelcastInstance hazelcastInstance, NamedLockKey key, com.hazelcast.cp.ISemaphore semaphore)
      Invoked when passed in semaphore associated with passed in key is not to be used anymore.