Class MapListenerProxy.KeyConverter

java.lang.Object
com.oracle.coherence.grpc.proxy.MapListenerProxy.KeyConverter
All Implemented Interfaces:
Converter<Object,Binary>, Converter<Object,Binary>, Function<Object,Binary>
Enclosing class:
MapListenerProxy

protected static class MapListenerProxy.KeyConverter extends Object implements Converter<Object,Binary>
Converter for cache key instances.
  • Field Details

    • f_holder

      protected final CacheRequestHolder<com.oracle.coherence.grpc.MapListenerRequest,Void> f_holder
      Cache request holder to handle conversion of Binary and ByteString objects.
    • f_converter

      protected final Converter<Object,Binary> f_converter
      Converter to handle the conversion cases f_holder doesn't cover.
  • Constructor Details

    • KeyConverter

      protected KeyConverter(CacheRequestHolder<com.oracle.coherence.grpc.MapListenerRequest,Void> holder)
      Constructs a new KeyConverter.
      Parameters:
      holder - the CacheRequestHolder which may have converters that can be used to convert the key
  • Method Details

    • convert

      public Binary convert(Object oKey)
      Description copied from interface: Converter
      Convert the passed object to another object.
      Specified by:
      convert in interface Converter<Object,Binary>
      Parameters:
      oKey - the object to convert
      Returns:
      the converted form of the passed object