View Javadoc

1   /*
2    * Created on 17 Nov 2007
3    * 
4    */
5   package org.sourceforge.jemm.comm.shared;
6   
7   import java.io.Serializable;
8   
9   /**
10   * A sendable message.
11   * 
12   * @author Rory Graves
13   */
14  public class Message implements Serializable {
15  	private static final long serialVersionUID = 1L;
16  
17  	final String threadId;
18  
19      /**
20       * Creates a Message with the given threadId.
21       * @param threadId The thread id of the caller.
22       */
23      public Message(String threadId) {
24          this.threadId = threadId;
25      }
26  
27      /**
28       * Returns the threadId of this message.
29       * @return the threadId.
30       */
31      public String getThreadId() {
32          return threadId;
33      }
34  }