Package org.infinispan.protostream
Interface WrappedMessageTypeIdMapper
Deprecated.
since 4.3.1 because it does not suit the intended purpose. Will be removed in 4.4.x with no replacement.
Experimental hook for re-mapping type ids during reading/writing of WrappedMessages. TypeIds are supposed to
be constant over the entire evolution of a schema, but in case they need to be changed we provide this hook to smooth
the transition.
- Since:
- 4.3
- Author:
- [email protected]
-
Method Summary
Modifier and TypeMethodDescriptiondefault int
mapTypeIdIn
(int typeId, ImmutableSerializationContext ctx) Deprecated.Called during decoding.default int
mapTypeIdOut
(int typeId, ImmutableSerializationContext ctx) Deprecated.Called during encoding.
-
Method Details
-
mapTypeIdIn
Deprecated.Called during decoding.- Parameters:
typeId
- a positive integer, the type id of the message being decodedctx
- the serialization context- Returns:
- the same TypeId or a different one
-
mapTypeIdOut
Deprecated.Called during encoding.- Parameters:
typeId
- a positive integerctx
- the serialization context- Returns:
- the same TypeId, a different TypeId, or -1 to force dropping the use of TypeIds for current WrappedMessage and use the type name instead
-