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()
SampleProcessor
getSampleContext
in interface SampleProcessor
public void setSampleContext(SampleContext sampleContext)
SampleProcessor
setSampleContext
in interface SampleProcessor
sampleContext
- the new sample contextpublic void setChannelAttribute(int channel, String key, Object value)
SampleProcessor
setChannelAttribute
in interface SampleProcessor
channel
- The channel number to associate the attribute onkey
- The attribute keyvalue
- The attribute value to be setpublic Object getChannelAttribute(int channel, String key)
SampleProcessor
getChannelAttribute
in interface SampleProcessor
channel
- The channel on which the attribute is associatedkey
- The attribute key to be retrievedCopyright © 1998-2016 Apache Software Foundation. All Rights Reserved.