use of com.hazelcast.cp.internal.datastructures.semaphore.proxy.SessionAwareSemaphoreProxy in project hazelcast by hazelcast.
the class SemaphoreService method createProxy.
@Override
public ISemaphore createProxy(String proxyName) {
try {
proxyName = withoutDefaultGroupName(proxyName);
RaftGroupId groupId = raftService.createRaftGroupForProxy(proxyName);
String objectName = getObjectNameForProxy(proxyName);
SemaphoreConfig config = getConfig(proxyName);
return config != null && config.isJDKCompatible() ? new SessionlessSemaphoreProxy(nodeEngine, groupId, proxyName, objectName) : new SessionAwareSemaphoreProxy(nodeEngine, groupId, proxyName, objectName);
} catch (Exception e) {
throw rethrow(e);
}
}
Aggregations