|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sf.infrared.agent.transport.PeriodicFlushPolicy
A FlushPolicy implementation that runs a background thread to keep flushing the Aggregator at a configurable frequency.
| Field Summary | |
static long |
DEFAULT_FREQUENCY
|
| Constructor Summary | |
PeriodicFlushPolicy()
|
|
| Method Summary | |
boolean |
activate()
Activates this FlushPolicy. |
protected void |
finalize()
|
Aggregator |
getAggregator()
Gets the Aggregator object that has been associated with this policy. |
long |
getFrequency()
Gets the frequency in which this policy is set to flush the associated aggregator. |
boolean |
isActive()
Checks if this policy is active. |
void |
setAggregator(Aggregator aggregator)
Sets the Aggregator object to be used. |
void |
setFrequency(long time)
Sets the frequency in which this polciy should flush the aggregator. |
boolean |
shutDown()
Shuts down this FlushPolicy. |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final long DEFAULT_FREQUENCY
| Constructor Detail |
public PeriodicFlushPolicy()
| Method Detail |
public boolean activate()
activate in interface FlushPolicysetAggregator(net.sf.infrared.agent.transport.Aggregator)public boolean shutDown()
shutDown in interface FlushPolicypublic void setAggregator(Aggregator aggregator)
setAggregator in interface FlushPolicyaggregator - getAggregator()public Aggregator getAggregator()
setAggregator(net.sf.infrared.agent.transport.Aggregator)public boolean isActive()
isActive in interface FlushPolicyactivate(),
shutDown()public void setFrequency(long time)
time - the frequency in millisecondspublic long getFrequency()
protected void finalize()
throws Throwable
Throwable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||