@InterfaceAudience.Private public class EnvironmentEdgeManager extends Object
EnvironmentEdge, then
defer to the delegate on invocation.| Modifier and Type | Method and Description |
|---|---|
static long |
currentTimeMillis()
Defers to the delegate and calls the
EnvironmentEdge.currentTimeMillis() method. |
static EnvironmentEdge |
getDelegate()
Retrieves the singleton instance of the
EnvironmentEdge that is
being managed. |
static void |
injectEdge(EnvironmentEdge edge)
Injects the given edge such that it becomes the managed entity.
|
static void |
reset()
Resets the managed instance to the default instance:
DefaultEnvironmentEdge. |
public static EnvironmentEdge getDelegate()
EnvironmentEdge that is
being managed.public static void reset()
DefaultEnvironmentEdge.public static void injectEdge(EnvironmentEdge edge)
edge - the new edge.public static long currentTimeMillis()
EnvironmentEdge.currentTimeMillis() method.Copyright © 2014 The Apache Software Foundation. All rights reserved.