Interface SampleSource
- All Superinterfaces:
Runnable
- All Known Implementing Classes:
AbstractSampleSource
,CsvFileSampleSource
The interface SampleSource represents a source of samples for sample consumers.
- Since:
- 3.0
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addSampleConsumer
(SampleConsumer consumer) Add a sample consumer to this sample source.Gets the sample context.void
removeSampleConsumer
(SampleConsumer consumer) Remove a sample consumer from this sample source.void
setSampleConsumers
(List<SampleConsumer> consumers) Sets the specified sample consumers that will consume samples produced by this sample source.void
setSampleContext
(SampleContext sampleContext) Sets the sample context.
-
Method Details
-
getSampleContext
SampleContext getSampleContext()Gets the sample context.- Returns:
- the sampleContext
-
setSampleContext
Sets the sample context.- Parameters:
sampleContext
- the sampleContext to set
-
setSampleConsumers
Sets the specified sample consumers that will consume samples produced by this sample source.- Parameters:
consumers
- consumers to be set
-
addSampleConsumer
Add a sample consumer to this sample source.- Parameters:
consumer
- consumer to be added
-
removeSampleConsumer
Remove a sample consumer from this sample source.- Parameters:
consumer
- consumer to be removed
-