public abstract class FunctionalStreamingTestComponent
extends org.mule.runtime.api.component.AbstractComponent
implements org.mule.runtime.core.api.processor.Processor, org.mule.runtime.core.api.context.MuleContextAware
Note that although this implements the full StreamingService interface, nothing is written to the output stream - this is intended as a final sink.
EventCallback| 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(org.mule.runtime.api.component.location.ConfigurationComponentLocator locator,
String flowName) |
int |
getNumber() |
String |
getSummary() |
org.mule.runtime.core.api.event.CoreEvent |
process(org.mule.runtime.core.api.event.CoreEvent event) |
protected int |
read(InputStream in,
byte[] buffer) |
void |
setEventCallback(org.mule.functional.api.component.EventCallback eventCallback,
long targetSize) |
void |
setMuleContext(org.mule.runtime.core.api.MuleContext context) |
String |
toString() |
getAnnotation, getAnnotations, getLocation, getRootContainerLocation, setAnnotationsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitprotected 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()
public org.mule.runtime.core.api.event.CoreEvent process(org.mule.runtime.core.api.event.CoreEvent event)
throws org.mule.runtime.api.exception.MuleException
process in interface org.mule.runtime.core.api.processor.Processororg.mule.runtime.api.exception.MuleExceptionprotected int read(InputStream in, byte[] buffer) throws IOException
IOExceptionpublic void setMuleContext(org.mule.runtime.core.api.MuleContext context)
setMuleContext in interface org.mule.runtime.core.api.context.MuleContextAwarepublic static FunctionalStreamingTestComponent getFromFlow(org.mule.runtime.api.component.location.ConfigurationComponentLocator locator, String flowName) throws Exception
FunctionalStreamingTestComponent instance from a flow with the provided name.ExceptionCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.