Package org.springframework.data.gemfire
Class RegionShortcutToDataPolicyConverter
java.lang.Object
org.springframework.data.gemfire.RegionShortcutToDataPolicyConverter
- All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<org.apache.geode.cache.RegionShortcut,
org.apache.geode.cache.DataPolicy>
public class RegionShortcutToDataPolicyConverter
extends Object
implements org.springframework.core.convert.converter.Converter<org.apache.geode.cache.RegionShortcut,org.apache.geode.cache.DataPolicy>
Spring
Converter
to convert a RegionShortcut
into a DataPolicy
.- Since:
- 2.0.2
- See Also:
-
DataPolicy
RegionShortcut
Converter
RegionShortcutWrapper
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.geode.cache.DataPolicy
convert
(org.apache.geode.cache.RegionShortcut regionShortcut) Converts the givenRegionShortcut
into a correspondingDataPolicy
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.core.convert.converter.Converter
andThen
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
RegionShortcutToDataPolicyConverter
public RegionShortcutToDataPolicyConverter()
-
-
Method Details
-
convert
@Nullable public org.apache.geode.cache.DataPolicy convert(org.apache.geode.cache.RegionShortcut regionShortcut) Converts the givenRegionShortcut
into a correspondingDataPolicy
.- Specified by:
convert
in interfaceorg.springframework.core.convert.converter.Converter<org.apache.geode.cache.RegionShortcut,
org.apache.geode.cache.DataPolicy> - Parameters:
regionShortcut
-RegionShortcut
to convert.- Returns:
- a corresponding
DataPolicy
for the givenRegionShortcut
. - See Also:
-
RegionShortcut
DataPolicy
-