@EmitsResponse public final class SocketListener extends org.mule.runtime.extension.api.runtime.source.Source<InputStream,SocketAttributes> implements FlowConstructAware
Whenever a new connection is received, this Source will schedule a a SocketWorker that will handle the
communication for that particular connection.
| Constructor and Description |
|---|
SocketListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
onError(org.mule.runtime.api.message.Error error,
org.mule.runtime.extension.api.runtime.source.SourceCallbackContext context) |
void |
onStart(org.mule.runtime.extension.api.runtime.source.SourceCallback<InputStream,SocketAttributes> sourceCallback) |
void |
onStop() |
void |
onSuccess(Object responseValue,
org.mule.runtime.extension.api.runtime.source.SourceCallbackContext context) |
void |
setFlowConstruct(FlowConstruct flowConstruct) |
public void onStart(org.mule.runtime.extension.api.runtime.source.SourceCallback<InputStream,SocketAttributes> sourceCallback) throws org.mule.runtime.api.exception.MuleException
onStart in class org.mule.runtime.extension.api.runtime.source.Source<InputStream,SocketAttributes>org.mule.runtime.api.exception.MuleException@OnSuccess
public void onSuccess(@Optional(defaultValue="#[payload]") @XmlHints(allowReferences=false)
Object responseValue,
org.mule.runtime.extension.api.runtime.source.SourceCallbackContext context)
@OnError
public void onError(org.mule.runtime.api.message.Error error,
org.mule.runtime.extension.api.runtime.source.SourceCallbackContext context)
public void onStop()
onStop in class org.mule.runtime.extension.api.runtime.source.Source<InputStream,SocketAttributes>public void setFlowConstruct(FlowConstruct flowConstruct)
setFlowConstruct in interface FlowConstructAwareCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.