org.graphstream.stream.sync
Class SinkTime

java.lang.Object
  extended by org.graphstream.stream.sync.SinkTime

public class SinkTime
extends Object


Field Summary
static String SYNC_DISABLE_KEY
          Key used to disable synchro.
 
Constructor Summary
SinkTime()
           
 
Method Summary
 boolean isNewEvent(String sourceId, long timeId)
          Allow to know if event is new for this source.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SYNC_DISABLE_KEY

public static final String SYNC_DISABLE_KEY
Key used to disable synchro. Just run : java -DSYNC_DISABLE_KEY ...

See Also:
Constant Field Values
Constructor Detail

SinkTime

public SinkTime()
Method Detail

isNewEvent

public boolean isNewEvent(String sourceId,
                          long timeId)
Allow to know if event is new for this source. This updates the timeId mapped to the source.

Parameters:
sourceId -
timeId -
Returns:
true if event is new for the source


Copyright © 2013. All Rights Reserved.