Class TNCEventBufferCleanupScheduler
java.lang.Object
com.nt.udc.testnodechain.adminserver.TNCEventBufferCleanupScheduler
TNCEventBufferCleanupScheduler is responsible for scheduling periodic cleanup tasks
on the event buffer associated with a Node Chain Test, managing the retention of events.
Based on the configured retention time and the check interval, events for the test that
matches the criteria are cleaned from memory.
-
Constructor Summary
ConstructorsConstructorDescriptionTNCEventBufferCleanupScheduler
(TNCEventSender tncEventSender, NodeChainTestCfg testCfg, long checkInterval, TimeUnit checkIntervalUnit, long retentionTime, TimeUnit retentionTimeUnit) Constructs a TNCEventBufferCleanupScheduler with the specified parameters. -
Method Summary
-
Constructor Details
-
TNCEventBufferCleanupScheduler
public TNCEventBufferCleanupScheduler(TNCEventSender tncEventSender, NodeChainTestCfg testCfg, long checkInterval, TimeUnit checkIntervalUnit, long retentionTime, TimeUnit retentionTimeUnit) Constructs a TNCEventBufferCleanupScheduler with the specified parameters.- Parameters:
tncEventSender
- The event sender responsible for dispatching events.testCfg
- TNC ConfigurationcheckInterval
- The interval between consecutive cleanup checks.checkIntervalUnit
- The time unit for the cleanup check interval.retentionTime
- The maximum duration that events are retained in the buffer for at estretentionTimeUnit
- The time unit for the retention time of events in the buffer.
-
-
Method Details
-
runCheck
public void runCheck() -
shutdown
public void shutdown()
-