Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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

      • getException

        public java.lang.Exception getException()
        Description copied from interface: ITransmissionResult
        Returns the transmission execution exception.
        Specified by:
        getException in interface ITransmissionResult<T>
        Returns:
        the transmission execution exception.