Package io.mats3
Interface MatsEndpoint.MatsObject
- Enclosing interface:
- MatsEndpoint<R,
S>
public static interface MatsEndpoint.MatsObject
For the incoming message type, this represents the equivalent of Java's
Object - a "generic" incoming
message whose type is not yet determined. When you know, you invoke toClass(Class) to get it "casted"
(i.e. deserialized) to the specified type.-
Method Summary
-
Method Details
-
toClass
Deserializes the incoming message class to the desired type - assuming that it actually is a serialized representation of that class.- Type Parameters:
T- the type of 'type'- Parameters:
type- the class that the incoming message should be deserialized to.- Returns:
- the deserialized object.
- Throws:
IllegalArgumentException- if the incoming message could not be deserialized to the desired type.
-