Search in sources :

Example 1 with AddInterceptorOperationSupplier

use of com.hazelcast.client.impl.AddInterceptorOperationSupplier in project hazelcast by hazelcast.

the class MapAddInterceptorMessageTask method createOperationSupplier.

@Override
protected Supplier<Operation> createOperationSupplier() {
    final MapService mapService = getService(MapService.SERVICE_NAME);
    final MapServiceContext mapServiceContext = mapService.getMapServiceContext();
    final MapInterceptor mapInterceptor = serializationService.toObject(parameters.interceptor);
    id = mapServiceContext.generateInterceptorId(parameters.name, mapInterceptor);
    return new AddInterceptorOperationSupplier(id, parameters.name, mapInterceptor);
}
Also used : AddInterceptorOperationSupplier(com.hazelcast.client.impl.AddInterceptorOperationSupplier) MapInterceptor(com.hazelcast.map.MapInterceptor) MapService(com.hazelcast.map.impl.MapService) MapServiceContext(com.hazelcast.map.impl.MapServiceContext)

Aggregations

AddInterceptorOperationSupplier (com.hazelcast.client.impl.AddInterceptorOperationSupplier)1 MapInterceptor (com.hazelcast.map.MapInterceptor)1 MapService (com.hazelcast.map.impl.MapService)1 MapServiceContext (com.hazelcast.map.impl.MapServiceContext)1