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 resolution of a condition.
010 * <p>
011 * This kind of event is produced when a promise is
012 * {@linkplain org.ref_send.promise.Resolver#resolve resolved}.
013 * </p>
014 * @see SentIf
015 */
016 public class
017 Resolved extends Event {
018 static private final long serialVersionUID = 1L;
019
020 /**
021 * globally unique identifier for the condition
022 */
023 public final String condition;
024
025 /**
026 * Constructs an instance.
027 * @param anchor {@link #anchor}
028 * @param timestamp {@link #timestamp}
029 * @param trace {@link #trace}
030 * @param condition {@link #condition}
031 */
032 public @deserializer
033 Resolved(@name("anchor") final Anchor anchor,
034 @name("timestamp") final Long timestamp,
035 @name("trace") final Trace trace,
036 @name("condition") final String condition) {
037 super(anchor, timestamp, trace);
038 this.condition = condition;
039 }
040 }