001 // Copyright 2008 Waterken Inc. under the terms of the MIT X license 002 // found at http://www.opensource.org/licenses/mit-license.html 003 package org.ref_send.log; 004 005 import org.ref_send.deserializer; 006 import org.ref_send.name; 007 008 /** 009 * Logs receipt of a message. 010 * @see Sent 011 */ 012 public class 013 Got extends Event { 014 static private final long serialVersionUID = 1L; 015 016 /** 017 * globally unique identifier for the message 018 */ 019 public final String message; 020 021 /** 022 * Constructs an instance. 023 * @param anchor {@link #anchor} 024 * @param timestamp {@link #timestamp} 025 * @param trace {@link #trace} 026 * @param message {@link #message} 027 */ 028 public @deserializer 029 Got(@name("anchor") final Anchor anchor, 030 @name("timestamp") final Long timestamp, 031 @name("trace") final Trace trace, 032 @name("message") final String message) { 033 super(anchor, timestamp, trace); 034 this.message = message; 035 } 036 }