public class AbstractSampleProcessor extends Object implements SampleProcessor
| Constructor and Description |
|---|
AbstractSampleProcessor() |
| Modifier and Type | Method and Description |
|---|---|
Object |
getChannelAttribute(int channel,
String key)
Return an attribute value associated on a channel on this sample
processor
|
SampleContext |
getSampleContext()
Gets the sample context.
|
void |
setChannelAttribute(int channel,
String key,
Object value)
Associate an attribute to the specified channel for this sample processor
If the attribute already exist, it is replaced. |
void |
setSampleContext(SampleContext sampleContext)
Set sample context that this consumer should rely on.
|
public SampleContext getSampleContext()
SampleProcessorgetSampleContext in interface SampleProcessorpublic void setSampleContext(SampleContext sampleContext)
SampleProcessorsetSampleContext in interface SampleProcessorsampleContext - the new sample contextpublic void setChannelAttribute(int channel,
String key,
Object value)
SampleProcessorsetChannelAttribute in interface SampleProcessorchannel - The channel number to associate the attribute onkey - The attribute keyvalue - The attribute value to be setpublic Object getChannelAttribute(int channel, String key)
SampleProcessorgetChannelAttribute in interface SampleProcessorchannel - The channel on which the attribute is associatedkey - The attribute key to be retrievedCopyright © 1998-2020 Apache Software Foundation. All Rights Reserved.