All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hazelcast.map.MapPostJoinAwareService Maven / Gradle / Ivy

There is a newer version: 5.4.0
Show newest version
package com.hazelcast.map;

import com.hazelcast.map.operation.PostJoinMapOperation;
import com.hazelcast.spi.Operation;
import com.hazelcast.spi.PostJoinAwareService;

import java.util.Map;

class MapPostJoinAwareService implements PostJoinAwareService {

    private final MapServiceContext mapServiceContext;

    public MapPostJoinAwareService(MapServiceContext mapServiceContext) {
        this.mapServiceContext = mapServiceContext;
    }

    @Override
    public Operation getPostJoinOperation() {
        PostJoinMapOperation o = new PostJoinMapOperation();
        final Map mapContainers = mapServiceContext.getMapContainers();
        for (MapContainer mapContainer : mapContainers.values()) {
            o.addMapIndex(mapContainer);
            o.addMapInterceptors(mapContainer);
        }
        return o;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy