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:
  • Field Details

  • Constructor Details

    • RegionShortcutToDataPolicyConverter

      public RegionShortcutToDataPolicyConverter()
  • Method Details

    • convert

      @Nullable public org.apache.geode.cache.DataPolicy convert(org.apache.geode.cache.RegionShortcut regionShortcut)
      Converts the given RegionShortcut into a corresponding DataPolicy.
      Specified by:
      convert in interface org.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 given RegionShortcut.
      See Also:
      • RegionShortcut
      • DataPolicy