Browse files

Annotated PathPrune.ttl as a duration field

  • Loading branch information...
1 parent 2e4c7fa commit 43b8ee3d9b474b05426404c0ca5049e990feb1ad yuesong committed Jul 21, 2014
Showing with 3 additions and 0 deletions.
  1. +3 −0 hydra-task/src/main/java/com/addthis/hydra/task/output/tree/PathPrune.java
View
3 hydra-task/src/main/java/com/addthis/hydra/task/output/tree/PathPrune.java
@@ -14,11 +14,13 @@
package com.addthis.hydra.task.output.tree;
import java.util.Map;
+import java.util.concurrent.TimeUnit;
import com.addthis.basis.util.ClosableIterator;
import com.addthis.basis.util.JitterClock;
import com.addthis.codec.annotations.FieldConfig;
+import com.addthis.codec.annotations.Time;
import com.addthis.hydra.data.tree.DataTreeNode;
import com.addthis.hydra.data.tree.TreeNodeData;
import com.addthis.hydra.data.tree.TreeNodeList;
@@ -50,6 +52,7 @@
/**
* Maximum age in milliseconds.
*/
+ @Time(TimeUnit.MILLISECONDS)
@FieldConfig(codable = true)
private long ttl;

0 comments on commit 43b8ee3

Please sign in to comment.