public abstract class GraphListenerCounter extends GraphListenerBase
Constructor and Description |
---|
GraphListenerCounter(int addTickCount)
Create a listener that "ticks" on additions to the graph (-1 means "off")
|
GraphListenerCounter(int addTickCount,
int deleteTickCount)
Create a listener that "ticks" on additions and deletions
(in each case, -1 means "off")
|
Modifier and Type | Method and Description |
---|---|
long |
getAddCount() |
long |
getAddTicks() |
int |
getAddTickSize() |
long |
getDeleteCount() |
long |
getDeleteTicks() |
int |
getDeleteTickSize() |
void |
notifyEvent(Graph source,
Object value) |
void |
reset() |
notifyAddArray, notifyAddGraph, notifyAddIterator, notifyAddList, notifyAddTriple, notifyDeleteArray, notifyDeleteGraph, notifyDeleteIterator, notifyDeleteList, notifyDeleteTriple
public GraphListenerCounter(int addTickCount)
addTickCount
- public GraphListenerCounter(int addTickCount, int deleteTickCount)
addTickCount
- Notification tick for additions to the graphdeleteTickCount
- Notification tick for deletions to the graphpublic void reset()
public void notifyEvent(Graph source, Object value)
notifyEvent
in interface GraphListener
notifyEvent
in class GraphListenerBase
public final int getAddTickSize()
public final int getDeleteTickSize()
public final long getAddCount()
public final long getDeleteCount()
public final long getAddTicks()
public final long getDeleteTicks()
Licenced under the Apache License, Version 2.0