Search in sources :

Example 1 with CountDownLatchProxy

use of com.hazelcast.cp.internal.datastructures.countdownlatch.proxy.CountDownLatchProxy in project hazelcast by hazelcast.

the class CountDownLatchService method createProxy.

@Override
public ICountDownLatch createProxy(String proxyName) {
    try {
        proxyName = withoutDefaultGroupName(proxyName);
        RaftService service = nodeEngine.getService(RaftService.SERVICE_NAME);
        RaftGroupId groupId = service.createRaftGroupForProxy(proxyName);
        return new CountDownLatchProxy(nodeEngine, groupId, proxyName, getObjectNameForProxy(proxyName));
    } catch (Exception e) {
        throw rethrow(e);
    }
}
Also used : CountDownLatchProxy(com.hazelcast.cp.internal.datastructures.countdownlatch.proxy.CountDownLatchProxy) RaftService(com.hazelcast.cp.internal.RaftService) RaftGroupId(com.hazelcast.cp.internal.RaftGroupId)

Aggregations

RaftGroupId (com.hazelcast.cp.internal.RaftGroupId)1 RaftService (com.hazelcast.cp.internal.RaftService)1 CountDownLatchProxy (com.hazelcast.cp.internal.datastructures.countdownlatch.proxy.CountDownLatchProxy)1