Java 类org.apache.camel.impl.SynchronousDelegateProducer 实例源码

项目:beyondj    文件:JettyHttpEndpoint.java   
@Override
public Producer createProducer() throws Exception {
    JettyHttpProducer answer = new JettyHttpProducer(this);
    if (client != null) {
        // use shared client, and ensure its started so we can use it
        client.start();
        answer.setSharedClient(client);
        answer.setBinding(getJettyBinding(client));
    } else {
        HttpClient httpClient = createJettyHttpClient();
        answer.setClient(httpClient);
        answer.setBinding(getJettyBinding(httpClient));
    }

    if (isSynchronous()) {
        return new SynchronousDelegateProducer(answer);
    } else {
        return answer;
    }
}
项目:funktion-connectors    文件:K8KafkaEndpoint.java   
@Override
public Producer createProducer() throws Exception {
    KafkaProducer producer = createProducer(this);
    if (isSynchronous()) {
        return new SynchronousDelegateProducer(producer);
    } else {
        return producer;
    }
}
项目:Camel    文件:MyAsyncEndpoint.java   
public Producer createProducer() throws Exception {
    Producer answer = new MyAsyncProducer(this);
    if (isSynchronous()) {
        // force it to be synchronously
        return new SynchronousDelegateProducer(answer);
    } else {
        return answer;
    }
}
项目:Camel    文件:NettyHttpEndpoint.java   
@Override
public Producer createProducer() throws Exception {
    Producer answer = new NettyHttpProducer(this, getConfiguration());
    if (isSynchronous()) {
        return new SynchronousDelegateProducer(answer);
    } else {
        return answer;
    }
}
项目:Camel    文件:CxfEndpoint.java   
public Producer createProducer() throws Exception {
    Producer answer = new CxfProducer(this);
    if (isSynchronous()) {
        return new SynchronousDelegateProducer(answer);
    } else {
        return answer;
    }
}
项目:Camel    文件:JmsEndpoint.java   
public Producer createProducer() throws Exception {
    Producer answer = new JmsProducer(this);
    if (isSynchronous()) {
        return new SynchronousDelegateProducer(answer);
    } else {
        return answer;
    }
}
项目:Camel    文件:MyAsyncEndpoint.java   
public Producer createProducer() throws Exception {
    Producer answer = new MyAsyncProducer(this);
    if (isSynchronous()) {
        // force it to be synchronously
        return new SynchronousDelegateProducer(answer);
    } else {
        return answer;
    }
}
项目:Camel    文件:NettyEndpoint.java   
public Producer createProducer() throws Exception {
    Producer answer = new NettyProducer(this, configuration);
    if (isSynchronous()) {
        return new SynchronousDelegateProducer(answer);
    } else {
        return answer;
    }
}
项目:Camel    文件:KafkaEndpoint.java   
@Override
public Producer createProducer() throws Exception {
    KafkaProducer producer = createProducer(this);
    if (isSynchronous()) {
        return new SynchronousDelegateProducer(producer);
    } else {
        return producer;
    }
}
项目:Camel    文件:NettyHttpEndpoint.java   
@Override
public Producer createProducer() throws Exception {
    Producer answer = new NettyHttpProducer(this, getConfiguration());
    if (isSynchronous()) {
        return new SynchronousDelegateProducer(answer);
    } else {
        return answer;
    }
}
项目:Camel    文件:XmlRpcEndpoint.java   
public Producer createProducer() throws Exception {
    Producer answer = new XmlRpcProducer(this);
    if (isSynchronous()) {
        return new SynchronousDelegateProducer(answer);
    } else {
        return answer;
    }
}
项目:Camel    文件:MyAsyncEndpoint.java   
public Producer createProducer() throws Exception {
    Producer answer = new MyAsyncProducer(this);
    if (isSynchronous()) {
        // force it to be synchronously
        return new SynchronousDelegateProducer(answer);
    } else {
        return answer;
    }
}
项目:Camel    文件:SalesforceEndpoint.java   
public Producer createProducer() throws Exception {
    // producer requires an operation, topicName must be the invalid operation name
    if (operationName == null) {
        throw new IllegalArgumentException(String.format("Invalid Operation %s", topicName));
    }

    SalesforceProducer producer = new SalesforceProducer(this);
    if (isSynchronous()) {
        return new SynchronousDelegateProducer(producer);
    } else {
        return producer;
    }
}
项目:Camel    文件:NettyEndpoint.java   
public Producer createProducer() throws Exception {
    Producer answer = new NettyProducer(this, configuration);
    if (isSynchronous()) {
        return new SynchronousDelegateProducer(answer);
    } else {
        return answer;
    }
}