@InterfaceAudience.Private public class IncrementingEnvironmentEdge extends Object implements EnvironmentEdge
Constructor and Description |
---|
IncrementingEnvironmentEdge()
Construct an incremental edge starting from currentTimeMillis
|
IncrementingEnvironmentEdge(long initialAmount)
Construct an incremental edge with an initial amount
|
Modifier and Type | Method and Description |
---|---|
long |
currentTime()
Returns the currentTime.
|
long |
incrementTime(long amount)
Increment the time by the given amount
|
public IncrementingEnvironmentEdge()
public IncrementingEnvironmentEdge(long initialAmount)
initialAmount
- the initial value to start withpublic long currentTime()
currentTime
in interface EnvironmentEdge
public long incrementTime(long amount)
Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.