*/
public class SoneInsertedEvent extends SoneEvent {
- /** The duration of the insert. */
private final long insertDuration;
+ private final String insertFingerprint;
- /**
- * Creates a new “Sone was inserted” event.
- *
- * @param sone
- * The Sone that was inserted
- * @param insertDuration
- * The duration of the insert (in milliseconds)
- */
- public SoneInsertedEvent(Sone sone, long insertDuration) {
+ public SoneInsertedEvent(Sone sone, long insertDuration, String insertFingerprint) {
super(sone);
this.insertDuration = insertDuration;
+ this.insertFingerprint = insertFingerprint;
}
- //
- // ACCESSORS
- //
-
- /**
- * Returns the duration of the insert.
- *
- * @return The duration of the insert (in milliseconds)
- */
public long insertDuration() {
return insertDuration;
}
+ public String insertFingerprint() {
+ return insertFingerprint;
+ }
+
}