View Javadoc

1   /**
2    * 
3    */
4   package org.sourceforge.jemmrpc.shared;
5   
6   /**
7    * @author Rory Graves
8    * 
9    */
10  public class RPCCallRespMessage extends Message
11  {
12      /**
13       * 
14       */
15      private static final long serialVersionUID = 1L;
16  
17      /** Whether the call was a normal return or an exception. */
18      public final boolean callSuccess;
19  
20      /** Returned value, or thrown exception. */
21      public final Object returnValue;
22  
23      /**
24       * Create an RPCCallRespMessage for the given caller thread, with the returned value or
25       * exception
26       * 
27       * @param threadId The calling threadId.
28       * @param normalReturn If true, the 'returnValue' is the method return value, false it is a
29       *            thrown exception.
30       * @param returnValue The returned value or exception.
31       */
32      public RPCCallRespMessage(String threadId, boolean normalReturn, Object returnValue)
33      {
34          super(threadId);
35          callSuccess = normalReturn;
36          this.returnValue = returnValue;
37      }
38  
39  }