public class ScheduledEventProcessorInfoSource extends Object implements EventProcessorInfoSource
EventProcessorInfoSource
that schedule the notification of EventProcessor
s status.Constructor and Description |
---|
ScheduledEventProcessorInfoSource(int initialDelay,
int schedulingPeriod,
EventProcessorInfoSource delegate)
Initialize the
ScheduledEventProcessorInfoSource using the given initialDelay and schedulingPeriod , as milliseconds, to schedule a notification through the delegate at a fixed rate. |
Modifier and Type | Method and Description |
---|---|
void |
notifyInformation() |
void |
shutdown()
|
void |
start()
Start an
Executor using the given initialDelay and schedulingPeriod
as milliseconds to notify event processor information. |
public ScheduledEventProcessorInfoSource(int initialDelay, int schedulingPeriod, EventProcessorInfoSource delegate)
ScheduledEventProcessorInfoSource
using the given initialDelay
and schedulingPeriod
, as milliseconds, to schedule a notification through the delegate
at a fixed rate.initialDelay
- the initial delay in milliseconds used to notify at a fixed rateschedulingPeriod
- the period in milliseconds after which another notification will be scheduleddelegate
- an EventProcessorInfoSource
used to notify the information at the specific
interval@StartHandler(phase=1073741833) public void start()
Executor
using the given initialDelay
and schedulingPeriod
as milliseconds to notify event processor information. Will be started in phase Phase.INSTRUCTION_COMPONENTS
, to ensure the event processors this source shares information about have been
started.public void notifyInformation()
notifyInformation
in interface EventProcessorInfoSource
@ShutdownHandler(phase=1073741833) public void shutdown()
Executor
started through the start()
method. Will be invoked
in phase Phase.INSTRUCTION_COMPONENTS
.Copyright © 2010–2020. All rights reserved.