Package org.apache.hedwig.client.netty.impl

Examples of org.apache.hedwig.client.netty.impl.ActiveSubscriber


    @Override
    public void asyncCloseSubscription(final TopicSubscriber topicSubscriber,
                                       final Callback<ResponseBody> callback,
                                       final Object context) {
        final ActiveSubscriber ss = getActiveSubscriber(topicSubscriber);
        if (null == ss || null == hChannel) {
            logger.debug("No subscription {} found when closing its subscription from {}.",
                         va(topicSubscriber, hChannel));
            callback.operationFinished(context, (ResponseBody)null);
            return;
View Full Code Here


    }

    @Override
    public void handleSubscribeMessage(PubSubResponse response) {
        Message message = response.getMessage();
        ActiveSubscriber ss = getActiveSubscriber();
        if (null == ss) {
            logger.error("No Subscriber is alive receiving its message {}.",
                         MessageIdUtils.msgIdToReadableString(message.getMsgId()));
            return;
        }
        ss.handleMessage(message);
    }
View Full Code Here

TOP

Related Classes of org.apache.hedwig.client.netty.impl.ActiveSubscriber

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.