public class Mina2Producer
extends org.apache.camel.impl.DefaultProducer
implements org.apache.camel.ServicePoolAware
Producer
implementation for MINAConstructor 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, toString
doResume, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
public Mina2Producer(Mina2Endpoint endpoint) throws Exception
Exception
public Mina2Endpoint getEndpoint()
getEndpoint
in interface org.apache.camel.EndpointAware
getEndpoint
in class org.apache.camel.impl.DefaultProducer
public boolean isSingleton()
isSingleton
in interface org.apache.camel.IsSingleton
isSingleton
in class org.apache.camel.impl.DefaultProducer
public void process(org.apache.camel.Exchange exchange) throws Exception
process
in interface org.apache.camel.Processor
Exception
protected void doProcess(org.apache.camel.Exchange exchange) throws Exception
Exception
protected void maybeDisconnectOnDone(org.apache.camel.Exchange exchange)
public org.apache.mina.core.filterchain.DefaultIoFilterChainBuilder getFilterChain()
protected void doStart() throws Exception
doStart
in class org.apache.camel.impl.DefaultProducer
Exception
protected void doStop() throws Exception
doStop
in class org.apache.camel.impl.DefaultProducer
Exception
protected void doShutdown() throws Exception
doShutdown
in class org.apache.camel.support.ServiceSupport
Exception
protected void setupVmProtocol(String uri)
protected void setupSocketProtocol(String uri) throws Exception
Exception
protected 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