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 |
---|---|
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 ctx)
Set sample context that this consumer should rely on.
|
SampleContext getSampleContext()
void setSampleContext(SampleContext ctx)
ctx
- the new sample contextvoid setChannelAttribute(int channel, String key, Object value)
channel
- The channel number to associate the attribute onkey
- The attribute keyvalue
- The attribute value to be setObject getChannelAttribute(int channel, String key)
channel
- The channel on which the attribute is associatedkey
- The attribute key to be retrievedCopyright © 1998-2016 Apache Software Foundation. All Rights Reserved.