1 /* 2 * Created on 17 Nov 2007 3 * 4 */ 5 package org.sourceforge.jemmrpc.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 { 16 /** 17 * 18 */ 19 private static final long serialVersionUID = 1L; 20 21 final String threadId; 22 23 /** 24 * Creates a Message with the given threadId. 25 * 26 * @param threadId The thread id of the caller. 27 */ 28 public Message(String threadId) 29 { 30 this.threadId = threadId; 31 } 32 33 /** 34 * Returns the threadId of this message. 35 * 36 * @return the threadId. 37 */ 38 public String getThreadId() 39 { 40 return threadId; 41 } 42 }