public interface Replayable
Replayable source = ... ; Replayable.Controller replay = source.getReplayController(); ... // source is building a graph ... Graph g = ... ; // // Replay the source to get the current state of the graph // replay.addSink(g); replay.replay();
| Modifier and Type | Interface and Description | 
|---|---|
static interface  | 
Replayable.Controller
A controller used to replay a source. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Replayable.Controller | 
getReplayController()
Get a controller to replay the graph. 
 | 
static void | 
replay(Replayable source,
      Sink sink)
Util method to replay a replayable source into a sink. 
 | 
static void | 
tryReplay(Source source,
         Sink sink)
Same as  
replay(Replayable, Sink) but the first parameter is just a
 Source and it will be replayed only if the
 Replayable interface is implemented. | 
Replayable.Controller getReplayController()
static void replay(Replayable source, Sink sink)
source - a source implementing the Replayable interfacesink - sink which will receive the events produced by the replaystatic void tryReplay(Source source, Sink sink)
replay(Replayable, Sink) but the first parameter is just a
 Source and it will be replayed only if the
 Replayable interface is implemented.source - a sourcesink - sink which will receive the events produced by the replay