Package org.drools.grid.responsehandlers

Examples of org.drools.grid.responsehandlers.BlockingMessageResponseHandler


        }
        this.session.write( msg );
    }

    public Message write(Message msg) {
        BlockingMessageResponseHandler responseHandler = new BlockingMessageResponseHandler();

        if ( responseHandler != null ) {
            addResponseHandler( msg.getResponseId(),
                                responseHandler );
        }
        this.session.write( msg );

        Message returnMessage = responseHandler.getMessage();
        if ( responseHandler.getError() != null ) {
            throw responseHandler.getError();
        }

        return returnMessage;
    }
View Full Code Here

TOP

Related Classes of org.drools.grid.responsehandlers.BlockingMessageResponseHandler

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.