Package lumis.portal.cluster
Class TransmissionResult<T>
- java.lang.Object
-
- lumis.portal.cluster.TransmissionResult<T>
-
- Type Parameters:
T
- the return of transmission execution.
- All Implemented Interfaces:
ITransmissionResult<T>
public class TransmissionResult<T> extends java.lang.Object implements ITransmissionResult<T>
Transmission result holder.- Since:
- 8.0.0
- Version:
- $Revision: 17047 $ $Date: 2015-03-03 11:22:22 -0300 (Tue, 03 Mar 2015) $
-
-
Constructor Summary
Constructors Constructor Description TransmissionResult(java.lang.Exception exception)
Creates a new instance with the exception thrown during the execution.TransmissionResult(T result)
Creates a new instance with the given result.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Exception
getException()
Returns the transmission execution exception.T
getResult()
Returns the transmission execution result.
-
-
-
Constructor Detail
-
TransmissionResult
public TransmissionResult(T result)
Creates a new instance with the given result.- Parameters:
result
- the result.- Since:
- 8.0.0
-
TransmissionResult
public TransmissionResult(java.lang.Exception exception)
Creates a new instance with the exception thrown during the execution.- Parameters:
exception
- the exception.- Since:
- 8.0.0
-
-
Method Detail
-
getResult
public T getResult()
Description copied from interface:ITransmissionResult
Returns the transmission execution result.- Specified by:
getResult
in interfaceITransmissionResult<T>
- Returns:
- the transmission execution result.
-
getException
public java.lang.Exception getException()
Description copied from interface:ITransmissionResult
Returns the transmission execution exception.- Specified by:
getException
in interfaceITransmissionResult<T>
- Returns:
- the transmission execution exception.
-
-