Object KeyValueEntryMapper

  • All Implemented Interfaces:

    
    public class KeyValueEntryMapper
    
                        

    Companion for creating KeyValueEntry from NATS KeyValueEntry

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final <T extends Any> KeyValueEntry<T> from(KeyValueEntry natsEntry, T value) Map a NATS KeyValueEntry to a typed KeyValueEntry
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • from

         final <T extends Any> KeyValueEntry<T> from(KeyValueEntry natsEntry, T value)

        Map a NATS KeyValueEntry to a typed KeyValueEntry

        Parameters:
        natsEntry - The NATS KeyValueEntry
        value - The decoded value, null for the reasons KeyValueEntry.value lists
        Returns:

        The typed KeyValueEntry