Package xbird.engine.Request

Examples of xbird.engine.Request.ReplyPattern


        RequestContext rc = new RequestContext(request);
        _sched.addTask(rc);

        // execute task
        final Serializable result;
        ReplyPattern replyPtn = request.getReplyPattern();
        if(replyPtn == ReplyPattern.RESPONSE) {// synchronous response
            Serializable promptResult = rc.getResult();
            if(promptResult != null) {
                result = promptResult;
            } else {
View Full Code Here


    public void onResponse(RequestContext rc) throws RemoteException {
        rc.setFinished(System.currentTimeMillis());
        syncSignal(false, rc);

        Request request = rc.getRequest();
        ReplyPattern type = request.getReplyPattern();
        if(type == ReplyPattern.CALLBACK) {
            ResultHandler handler = request.getResultHandler();
            if(handler == null) {
                throw new IllegalStateException("ResultHandler is not set for the Callback reply pattern on Request#"
                        + request.getIdentifier());
View Full Code Here

    public XQEngineClient() {
        this(null);
    }

    public Object execute(Request request) throws RemoteException {
        final ReplyPattern replyPtn = request.getReplyPattern();
        if(replyPtn == ReplyPattern.CALLBACK) {
            throw new IllegalStateException("ResultHandler is required for the Callback reply pattern");
        }
        prepare();
        request.setInvoked(System.currentTimeMillis());
View Full Code Here

    public Object execute(Request request, ResultHandler handler) throws RemoteException {
        if(handler == null) {
            throw new IllegalArgumentException();
        }
        final ReplyPattern replyPtn = request.getReplyPattern();
        if(replyPtn == ReplyPattern.POLL) {
            LOG.warn("execute(Request) method should be used for Poll reply pattern. ResultHandler does not make sence in this method.");
        }
        if(replyPtn == ReplyPattern.CALLBACK) {
            exportMe(handler, request);
View Full Code Here

    public XQEngineClient(String remoteEndpoint) {
        this.remoteEndpoint = remoteEndpoint;
    }

    public Object execute(Request request) throws RemoteException {
        final ReplyPattern replyPtn = request.getReplyPattern();
        if(replyPtn == ReplyPattern.CALLBACK) {
            throw new IllegalStateException("ResultHandler is required for the Callback reply pattern");
        }
        prepare();
        request.setInvoked(System.currentTimeMillis());
View Full Code Here

    public Object execute(Request request, ResultHandler handler) throws RemoteException {
        if(handler == null) {
            throw new IllegalArgumentException();
        }
        final ReplyPattern replyPtn = request.getReplyPattern();
        if(replyPtn == ReplyPattern.POLL) {
            LOG.warn("execute(Request) method should be used for Poll reply pattern. ResultHandler does not make sence in this method.");
        }
        if(replyPtn == ReplyPattern.CALLBACK) {
            exportMe(handler, request);
View Full Code Here

TOP

Related Classes of xbird.engine.Request.ReplyPattern

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.