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 Link icon

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

    Constructors
    Constructor
    Description
     
  • Method Summary Link icon

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

    Methods inherited from class java.lang.Object Link icon

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

  • Constructor Details Link icon

  • Method Details Link icon

    • acquireSemaphore Link icon

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

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