public abstract class FunctionalStreamingTestComponent extends Object implements Processor, MuleContextAware, FlowConstructAware
Note that although this implements the full StreamingService interface, nothing is written to the output stream - this is intended as a final sink.
EventCallbackReactiveProcessor.ProcessingType| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger |
static int |
STREAM_BUFFER_SIZE |
static int |
STREAM_SAMPLE_SIZE |
| Constructor and Description |
|---|
FunctionalStreamingTestComponent() |
| Modifier and Type | Method and Description |
|---|---|
static FunctionalStreamingTestComponent |
getFromFlow(MuleContext muleContext,
String flowName) |
int |
getNumber() |
String |
getSummary() |
Event |
process(Event event) |
protected int |
read(InputStream in,
byte[] buffer) |
void |
setEventCallback(org.mule.functional.api.component.EventCallback eventCallback,
long targetSize) |
void |
setFlowConstruct(FlowConstruct flowConstruct) |
void |
setMuleContext(MuleContext context) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetProcessingTypeprotected transient org.slf4j.Logger logger
public static final int STREAM_SAMPLE_SIZE
public static final int STREAM_BUFFER_SIZE
public void setEventCallback(org.mule.functional.api.component.EventCallback eventCallback,
long targetSize)
public String getSummary()
public int getNumber()
protected int read(InputStream in, byte[] buffer) throws IOException
IOExceptionpublic void setMuleContext(MuleContext context)
setMuleContext in interface MuleContextAwarepublic void setFlowConstruct(FlowConstruct flowConstruct)
setFlowConstruct in interface FlowConstructAwarepublic static FunctionalStreamingTestComponent getFromFlow(MuleContext muleContext, String flowName) throws Exception
FunctionalStreamingTestComponent instance from a flow with the provided name.ExceptionCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.