public interface SampleProcessor
Basically a sample processor is meant to process samples. There is currently 2 kinds of sample processors :
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 ctx)
Set sample context that this consumer should rely on.
|
SampleContext getSampleContext()
void setSampleContext(SampleContext ctx)
ctx
- the new sample contextvoid setChannelAttribute(int channel, java.lang.String key, java.lang.Object value)
channel
- The channel number to associate the attribute onkey
- The attribute keyvalue
- The attribute value to be setjava.lang.Object getChannelAttribute(int channel, java.lang.String key)
channel
- The channel on which the attribute is associatedkey
- The attribute key to be retrievedCopyright © 1998-2019 Apache Software Foundation. All Rights Reserved.