Package org.apache.camel.support
Class SynchronousDelegateProducer
- java.lang.Object
-
- org.apache.camel.support.SynchronousDelegateProducer
-
- All Implemented Interfaces:
AutoCloseable
,org.apache.camel.EndpointAware
,org.apache.camel.IsSingleton
,org.apache.camel.Processor
,org.apache.camel.Producer
,org.apache.camel.Service
public class SynchronousDelegateProducer extends Object implements org.apache.camel.Producer
To process the delegated producer in synchronous mode. This is used to enforce asynchronous producers to run in synchronous mode when it has been configured to do so. This delegate allows the component developers easily to support their existing asynchronous producer to behave synchronously by wrapping their producer in this synchronous delegate.
-
-
Constructor Summary
Constructors Constructor Description SynchronousDelegateProducer(org.apache.camel.Producer producer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.camel.Endpoint
getEndpoint()
void
init()
boolean
isSingleton()
void
process(org.apache.camel.Exchange exchange)
void
start()
void
stop()
String
toString()
-
-
-
Method Detail
-
getEndpoint
public org.apache.camel.Endpoint getEndpoint()
- Specified by:
getEndpoint
in interfaceorg.apache.camel.EndpointAware
-
process
public void process(org.apache.camel.Exchange exchange) throws Exception
- Specified by:
process
in interfaceorg.apache.camel.Processor
- Throws:
Exception
-
init
public void init()
- Specified by:
init
in interfaceorg.apache.camel.Service
-
start
public void start()
- Specified by:
start
in interfaceorg.apache.camel.Service
-
stop
public void stop()
- Specified by:
stop
in interfaceorg.apache.camel.Service
-
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton
in interfaceorg.apache.camel.IsSingleton
-
-