Search in sources :

Example 1 with CPSessionCloseSessionCodec

use of com.hazelcast.client.impl.protocol.codec.CPSessionCloseSessionCodec in project hazelcast by hazelcast.

the class ClientProxySessionManager method closeSession.

@Override
protected InternalCompletableFuture<Object> closeSession(RaftGroupId groupId, Long sessionId) {
    ClientMessage request = CPSessionCloseSessionCodec.encodeRequest(groupId, sessionId);
    ClientInvocationFuture future = new ClientInvocation(client, request, "sessionManager").invoke();
    return new ClientDelegatingFuture<>(future, client.getSerializationService(), CPSessionCloseSessionCodec::decodeResponse);
}
Also used : ClientDelegatingFuture(com.hazelcast.client.impl.ClientDelegatingFuture) ClientInvocation(com.hazelcast.client.impl.spi.impl.ClientInvocation) ClientMessage(com.hazelcast.client.impl.protocol.ClientMessage) CPSessionCloseSessionCodec(com.hazelcast.client.impl.protocol.codec.CPSessionCloseSessionCodec) ClientInvocationFuture(com.hazelcast.client.impl.spi.impl.ClientInvocationFuture)

Aggregations

ClientDelegatingFuture (com.hazelcast.client.impl.ClientDelegatingFuture)1 ClientMessage (com.hazelcast.client.impl.protocol.ClientMessage)1 CPSessionCloseSessionCodec (com.hazelcast.client.impl.protocol.codec.CPSessionCloseSessionCodec)1 ClientInvocation (com.hazelcast.client.impl.spi.impl.ClientInvocation)1 ClientInvocationFuture (com.hazelcast.client.impl.spi.impl.ClientInvocationFuture)1