Class ClientRegionShortcutToDataPolicyConverter
java.lang.Object
org.springframework.data.gemfire.client.ClientRegionShortcutToDataPolicyConverter
- All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<org.apache.geode.cache.client.ClientRegionShortcut,
org.apache.geode.cache.DataPolicy>
public class ClientRegionShortcutToDataPolicyConverter
extends Object
implements org.springframework.core.convert.converter.Converter<org.apache.geode.cache.client.ClientRegionShortcut,org.apache.geode.cache.DataPolicy>
Spring
Converter
to convert a ClientRegionShortcut
into a DataPolicy
.- Since:
- 2.0.2
- See Also:
-
DataPolicy
ClientRegionShortcut
Converter
ClientRegionShortcutWrapper
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.geode.cache.DataPolicy
convert
(org.apache.geode.cache.client.ClientRegionShortcut clientRegionShortcut) Converts the givenClientRegionShortcut
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
-
ClientRegionShortcutToDataPolicyConverter
public ClientRegionShortcutToDataPolicyConverter()
-
-
Method Details
-
convert
@Nullable public org.apache.geode.cache.DataPolicy convert(org.apache.geode.cache.client.ClientRegionShortcut clientRegionShortcut) Converts the givenClientRegionShortcut
into a correspondingDataPolicy
.- Specified by:
convert
in interfaceorg.springframework.core.convert.converter.Converter<org.apache.geode.cache.client.ClientRegionShortcut,
org.apache.geode.cache.DataPolicy> - Parameters:
clientRegionShortcut
-ClientRegionShortcut
to convert.- Returns:
- a corresponding
DataPolicy
for the givenClientRegionShortcut
. - See Also:
-
ClientRegionShortcut
DataPolicy
-