org.apache.camel.support.DefaultProducer Java Examples

The following examples show how to use org.apache.camel.support.DefaultProducer. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: KnativeTransportNoop.java    From camel-k-runtime with Apache License 2.0 5 votes vote down vote up
@Override
public Producer createProducer(Endpoint endpoint, KnativeTransportConfiguration configuration, KnativeEnvironment.KnativeServiceDefinition service) {
    return new DefaultProducer(endpoint) {
        @Override
        public void process(Exchange exchange) throws Exception {
        }
    };
}
 
Example #2
Source File: AcmeEndpoint.java    From syndesis with Apache License 2.0 5 votes vote down vote up
@Override
public Producer createProducer() throws Exception {
    return new DefaultProducer(this) {
        @Override
        public void process(Exchange exchange) throws Exception {
            // no-op
        }
    };
}