Object KeyValueEntryMapper
-
- All Implemented Interfaces:
public class KeyValueEntryMapperCompanion for creating KeyValueEntry from NATS KeyValueEntry
-
-
Field Summary
Fields Modifier and Type Field Description public final static KeyValueEntryMapperINSTANCE
-
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 -
-
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 KeyValueEntryvalue- The decoded value (null for DELETE/PURGE)- Returns:
The typed KeyValueEntry
-
-
-
-