Package org.apache.hedwig.protocol.PubSubProtocol

Examples of org.apache.hedwig.protocol.PubSubProtocol.StatusCode


    /**
     * callback finish operation with corresponding PubSubException converted
     * from return code rc.
     */
    private static <T> void logErrorAndFinishOperation(String msg, Callback<T> callback, Object ctx, int rc) {
        StatusCode code;

        if (rc == MSException.Code.NoKey.getCode()) {
            code = StatusCode.NO_SUCH_TOPIC;
        } else if (rc == MSException.Code.ServiceDown.getCode()) {
            code = StatusCode.SERVICE_DOWN;
View Full Code Here


                    }
                }
            }

            Either<StatusCode, HChannel> result;
            StatusCode statusCode;
            ActiveSubscriber ss = null;
            // Store the Subscribe state
            disconnectLock.readLock().lock();
            try {
                result = handleSuccessResponse(ts, pubSubData, channel);
View Full Code Here

        Either<Boolean, HChannel> result =
            sChannelManager.storeSubscriptionChannel(ts, pubSubData, hChannel);
        if (result.left()) {
            return Either.of(StatusCode.SUCCESS, result.right());
        } else {
            StatusCode code;
            if (pubSubData.isResubscribeRequest()) {
                code = StatusCode.RESUBSCRIBE_EXCEPTION;
            } else {
                code = StatusCode.CLIENT_ALREADY_SUBSCRIBED;
            }
View Full Code Here

        Either<Boolean, HChannel> result =
            sChannelManager.storeSubscriptionChannel(ts, pubSubData, channel);
        if (result.left()) {
            return Either.of(StatusCode.SUCCESS, result.right());
        } else {
            StatusCode code;
            if (pubSubData.isResubscribeRequest()) {
                code = StatusCode.RESUBSCRIBE_EXCEPTION;
            } else {
                code = StatusCode.CLIENT_ALREADY_SUBSCRIBED;
            }
View Full Code Here

TOP

Related Classes of org.apache.hedwig.protocol.PubSubProtocol.StatusCode

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.