Package org.talend.esb.job.controller.internal.RuntimeESBProviderCallback

Examples of org.talend.esb.job.controller.internal.RuntimeESBProviderCallback.MessageExchange


    /**
     * {@inheritDoc}
     */
    @Override
    public Object invoke(Object payload, boolean isRequestResponse) throws Exception {
        MessageExchange myExchange = new MessageExchange(payload);
        buffer.put(myExchange);
        if (!isRequestResponse) {
            return null;
        }
        return myExchange.waitForResponse();
    }
View Full Code Here


     *             when waiting for a request to become available
     * @throws InterruptedException
     *             when waiting for a request to become available the current {@link Thread} was interrupted
     */
    public MessageExchange take() throws BufferStoppedException, InterruptedException {
        MessageExchange currentExchange = null;
        try {
            idleConsumers.getAndIncrement();
            currentExchange = requests.take();
        } finally {
            idleConsumers.getAndDecrement();
View Full Code Here

TOP

Related Classes of org.talend.esb.job.controller.internal.RuntimeESBProviderCallback.MessageExchange

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.