public class MapOperationProviders extends Object
MapOperationProvider
instances.
MapOperationProvider
instances created by this class will be wrapped by WANAwareOperationProvider
if WAN replication is enabled for the related map.Modifier and Type | Field and Description |
---|---|
protected MapOperationProvider |
defaultProvider |
protected MapServiceContext |
mapServiceContext |
protected MapOperationProvider |
wanAwareProvider |
Constructor and Description |
---|
MapOperationProviders(MapServiceContext mapServiceContext) |
Modifier and Type | Method and Description |
---|---|
MapOperationProvider |
getOperationProvider(MapConfig mapConfig)
Returns a
MapOperationProvider instance, depending on whether the provided MapConfig has a
WAN replication policy configured or not. |
MapOperationProvider |
getOperationProvider(String name)
Creates
MapOperationProvider instance and wraps it into a WANAwareOperationProvider |
protected final MapServiceContext mapServiceContext
protected final MapOperationProvider wanAwareProvider
protected final MapOperationProvider defaultProvider
public MapOperationProviders(MapServiceContext mapServiceContext)
public MapOperationProvider getOperationProvider(String name)
MapOperationProvider
instance and wraps it into a WANAwareOperationProvider
name
- Name of the requested IMap
DefaultMapOperationProvider
or WANAwareOperationProvider
depending on the WAN replication
config of the requested map instance.public MapOperationProvider getOperationProvider(MapConfig mapConfig)
MapOperationProvider
instance, depending on whether the provided MapConfig
has a
WAN replication policy configured or not.mapConfig
- the map configuration to query whether WAN replication is configuredDefaultMapOperationProvider
or WANAwareOperationProvider
depending on the WAN replication
config of the map configuration provided as parameter.Copyright © 2021 Hazelcast, Inc.. All Rights Reserved.