@Singleton @Named(value="semaphore-hazelcast-client") public class HazelcastClientCPSemaphoreNamedLockFactory extends HazelcastSemaphoreNamedLockFactory
HazelcastSemaphoreNamedLockFactory
using Hazelcast Client and HazelcastInstance.getCPSubsystem()
method to get CP semaphore. For this to work, the Hazelcast
cluster the client is connecting to must be CP enabled cluster.Modifier and Type | Field and Description |
---|---|
static String |
NAME |
NAME_PREFIX
logger
Constructor and Description |
---|
HazelcastClientCPSemaphoreNamedLockFactory() |
createLock, destroyLock, shutdown
closeLock, finalize, getLock
public static final String NAME
@Inject public HazelcastClientCPSemaphoreNamedLockFactory()
Copyright © 2010–2021 The Apache Software Foundation. All rights reserved.