public static interface MatsEndpoint.MatsObject
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.Modifier and Type | Method and Description |
---|---|
<T> T |
toClass(java.lang.Class<T> type)
Deserializes the incoming message class to the desired type - assuming that it actually is a serialized
representation of that class.
|
<T> T toClass(java.lang.Class<T> type) throws java.lang.IllegalArgumentException
T
- the type of 'type'type
- the class that the incoming message should be deserialized to.java.lang.IllegalArgumentException
- if the incoming message could not be deserialized to the desired type.