Search in sources :

Example 1 with AddInterceptorOperationSupplier

use of com.hazelcast.map.impl.operation.AddInterceptorOperationSupplier in project hazelcast by hazelcast.

the class MapProxySupport method addMapInterceptorInternal.

public String addMapInterceptorInternal(MapInterceptor interceptor) {
    String id = mapServiceContext.generateInterceptorId(name, interceptor);
    syncInvokeOnAllMembers(new AddInterceptorOperationSupplier(name, id, interceptor));
    return id;
}
Also used : AddInterceptorOperationSupplier(com.hazelcast.map.impl.operation.AddInterceptorOperationSupplier)

Example 2 with AddInterceptorOperationSupplier

use of com.hazelcast.map.impl.operation.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(parameters.name, id, mapInterceptor);
}
Also used : AddInterceptorOperationSupplier(com.hazelcast.map.impl.operation.AddInterceptorOperationSupplier) MapInterceptor(com.hazelcast.map.MapInterceptor) MapService(com.hazelcast.map.impl.MapService) MapServiceContext(com.hazelcast.map.impl.MapServiceContext)

Aggregations

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