public class Mina2Producer
extends org.apache.camel.impl.DefaultProducer
implements org.apache.camel.ServicePoolAware
Producer implementation for MINA| Constructor and Description |
|---|
Mina2Producer(Mina2Endpoint endpoint) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configureCodecFactory(String type,
org.apache.mina.core.service.IoService service) |
protected void |
configureDataGramCodecFactory(String type,
org.apache.mina.core.service.IoService service,
Mina2Configuration configuration)
For datagrams the entire message is available as a single IoBuffer so lets just pass those around by default
and try converting whatever they payload is into IoBuffer unless some custom converter is specified
|
protected void |
configureDefaultCodecFactory(String type,
org.apache.mina.core.service.IoService service) |
protected void |
doProcess(org.apache.camel.Exchange exchange) |
protected void |
doShutdown() |
protected void |
doStart() |
protected void |
doStop() |
Mina2Endpoint |
getEndpoint() |
org.apache.mina.core.filterchain.DefaultIoFilterChainBuilder |
getFilterChain() |
boolean |
isSingleton() |
protected void |
maybeDisconnectOnDone(org.apache.camel.Exchange exchange) |
void |
process(org.apache.camel.Exchange exchange) |
protected void |
setupDatagramProtocol(String uri) |
protected void |
setupSocketProtocol(String uri) |
protected void |
setupVmProtocol(String uri) |
createExchange, createExchange, createExchange, toStringdoResume, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic Mina2Producer(Mina2Endpoint endpoint) throws Exception
Exceptionpublic Mina2Endpoint getEndpoint()
getEndpoint in interface org.apache.camel.EndpointAwaregetEndpoint in class org.apache.camel.impl.DefaultProducerpublic boolean isSingleton()
isSingleton in interface org.apache.camel.IsSingletonisSingleton in class org.apache.camel.impl.DefaultProducerpublic void process(org.apache.camel.Exchange exchange)
throws Exception
process in interface org.apache.camel.ProcessorExceptionprotected void doProcess(org.apache.camel.Exchange exchange)
throws Exception
Exceptionprotected void maybeDisconnectOnDone(org.apache.camel.Exchange exchange)
throws InterruptedException
InterruptedExceptionpublic org.apache.mina.core.filterchain.DefaultIoFilterChainBuilder getFilterChain()
protected void doStart()
throws Exception
doStart in class org.apache.camel.impl.DefaultProducerExceptionprotected void doStop()
throws Exception
doStop in class org.apache.camel.impl.DefaultProducerExceptionprotected void doShutdown()
throws Exception
doShutdown in class org.apache.camel.support.ServiceSupportExceptionprotected void setupVmProtocol(String uri)
protected void setupSocketProtocol(String uri) throws Exception
Exceptionprotected void configureCodecFactory(String type, org.apache.mina.core.service.IoService service)
protected void configureDefaultCodecFactory(String type, org.apache.mina.core.service.IoService service)
protected void setupDatagramProtocol(String uri)
protected void configureDataGramCodecFactory(String type, org.apache.mina.core.service.IoService service, Mina2Configuration configuration)
Apache Camel