use of com.hazelcast.client.impl.spi.impl.ClientInvocation in project hazelcast by hazelcast.
the class CountDownLatchProxy method countDown.
private void countDown(int round, UUID invocationUid) {
ClientMessage request = CountDownLatchCountDownCodec.encodeRequest(groupId, objectName, invocationUid, round);
new ClientInvocation(getClient(), request, name).invoke().joinInternal();
}
use of com.hazelcast.client.impl.spi.impl.ClientInvocation in project hazelcast by hazelcast.
the class CountDownLatchProxy method getCount.
@Override
public int getCount() {
ClientMessage request = CountDownLatchGetCountCodec.encodeRequest(groupId, objectName);
ClientMessage response = new ClientInvocation(getClient(), request, name).invoke().joinInternal();
return CountDownLatchGetCountCodec.decodeResponse(response);
}
use of com.hazelcast.client.impl.spi.impl.ClientInvocation in project hazelcast by hazelcast.
the class CountDownLatchProxy method getRound.
private int getRound() {
ClientMessage request = CountDownLatchGetRoundCodec.encodeRequest(groupId, objectName);
ClientMessage response = new ClientInvocation(getClient(), request, name).invoke().joinInternal();
return CountDownLatchGetRoundCodec.decodeResponse(response);
}
use of com.hazelcast.client.impl.spi.impl.ClientInvocation in project hazelcast by hazelcast.
the class FencedLockProxy method onDestroy.
@Override
public void onDestroy() {
ClientMessage msg = CPGroupDestroyCPObjectCodec.encodeRequest(lock.getGroupId(), getServiceName(), lock.getObjectName());
new ClientInvocation(getClient(), msg, name).invoke().joinInternal();
}
use of com.hazelcast.client.impl.spi.impl.ClientInvocation in project hazelcast by hazelcast.
the class ClientRaftProxyFactory method createSemaphore.
private ISemaphore createSemaphore(RaftGroupId groupId, String proxyName, String objectName) {
ClientMessage request = SemaphoreGetSemaphoreTypeCodec.encodeRequest(proxyName);
ClientMessage response = new ClientInvocation(client, request, objectName).invoke().join();
boolean jdkCompatible = SemaphoreGetSemaphoreTypeCodec.decodeResponse(response);
return jdkCompatible ? new SessionlessSemaphoreProxy(context, groupId, proxyName, objectName) : new SessionAwareSemaphoreProxy(context, groupId, proxyName, objectName);
}
Aggregations