Package com.github.ambry.store
Class TransformationOutput
- java.lang.Object
-
- com.github.ambry.store.TransformationOutput
-
public class TransformationOutput extends java.lang.Object
A class that holds the result of a transformation (by theTransformer
).
-
-
Constructor Summary
Constructors Constructor Description TransformationOutput(Message msg)
Instantiate an instance of this class with a message.TransformationOutput(java.lang.Exception exception)
Instantiate an instance of this class with an exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Exception
getException()
Message
getMsg()
-
-
-
Constructor Detail
-
TransformationOutput
public TransformationOutput(Message msg)
Instantiate an instance of this class with a message.- Parameters:
msg
- the resulting message after the transformation. May be null, which signifies that the transformation resulted in the message being discarded.
-
TransformationOutput
public TransformationOutput(java.lang.Exception exception)
Instantiate an instance of this class with an exception.- Parameters:
exception
- the exception encountered with the associated transformation, if any.
-
-