public class AbstractSampleProcessor extends java.lang.Object implements SampleProcessor
Constructor and Description |
---|
AbstractSampleProcessor() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getChannelAttribute(int channel,
java.lang.String key)
Return an attribute value associated on a channel on this sample
processor
|
SampleContext |
getSampleContext()
Gets the sample context.
|
void |
setChannelAttribute(int channel,
java.lang.String key,
java.lang.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, java.lang.String key, java.lang.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 java.lang.Object getChannelAttribute(int channel, java.lang.String key)
SampleProcessor
getChannelAttribute
in interface SampleProcessor
channel
- The channel on which the attribute is associatedkey
- The attribute key to be retrievedCopyright © 1998-2019 Apache Software Foundation. All Rights Reserved.