org.apache.hadoop.hbase.util
Class ManualEnvironmentEdge
java.lang.Object
org.apache.hadoop.hbase.util.ManualEnvironmentEdge
- All Implemented Interfaces:
- EnvironmentEdge
public class ManualEnvironmentEdge
- extends Object
- implements EnvironmentEdge
An environment edge that uses a manually set value. This is useful for testing events that are supposed to
happen in the same millisecond.
Field Summary |
protected long |
value
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
value
protected long value
ManualEnvironmentEdge
public ManualEnvironmentEdge()
setValue
public void setValue(long newValue)
currentTimeMillis
public long currentTimeMillis()
- Description copied from interface:
EnvironmentEdge
- Returns the currentTimeMillis.
- Specified by:
currentTimeMillis
in interface EnvironmentEdge
- Returns:
- currentTimeMillis.
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.