public class Mina2Producer extends DefaultProducer implements ServicePoolAware
Producer implementation for MINAlogshutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending| 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(Exchange exchange) |
protected void |
doShutdown()
Implementations override this method to perform customized shutdown.
|
protected void |
doStart()
Implementations override this method to support customized start/stop.
|
protected void |
doStop()
Implementations override this method to support customized start/stop.
|
Mina2Endpoint |
getEndpoint()
Gets the endpoint associated with an object.
|
org.apache.mina.core.filterchain.DefaultIoFilterChainBuilder |
getFilterChain() |
boolean |
isSingleton()
This implementation will delegate to the endpoint
IsSingleton.isSingleton() |
protected void |
maybeDisconnectOnDone(Exchange exchange) |
void |
process(Exchange exchange)
Processes the message 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, resume, shutdown, start, stop, suspendpublic Mina2Producer(Mina2Endpoint endpoint) throws Exception
Exceptionpublic Mina2Endpoint getEndpoint()
EndpointAwareProducer
or for consuming from for components like Consumer or RoutegetEndpoint in interface EndpointAwaregetEndpoint in class DefaultProducerpublic boolean isSingleton()
DefaultProducerIsSingleton.isSingleton()isSingleton in interface IsSingletonisSingleton in class DefaultProducerpublic void process(Exchange exchange) throws Exception
Processorprotected void maybeDisconnectOnDone(Exchange exchange)
public org.apache.mina.core.filterchain.DefaultIoFilterChainBuilder getFilterChain()
protected void doStart()
throws Exception
ServiceSupportServiceSupport.doStop() for more details.doStart in class DefaultProducerExceptionServiceSupport.doStop()protected void doStop()
throws Exception
ServiceSupportServiceSupport.doStop() method when
the service is being stopped. This method will also be invoked
if the service is still in uninitialized state (eg has not
been started). The method is always called to allow the service
to do custom logic when the service is being stopped, such as when
CamelContext is shutting down.doStop in class DefaultProducerExceptionServiceSupport.doStart()protected void doShutdown()
throws Exception
ServiceSupportdoShutdown in class 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)
Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.