Package org.apache.hedwig.client.exceptions

Examples of org.apache.hedwig.client.exceptions.NoResponseHandlerException


     * @return ResponseHandler Instance tied to the Channel's Pipeline
     */
    public static HChannelHandler getHChannelHandlerFromChannel(Channel channel)
    throws NoResponseHandlerException {
        if (null == channel) {
            throw new NoResponseHandlerException("Received a null value for the channel. Cannot retrieve the response handler");
        }

        HChannelHandler handler = (HChannelHandler) channel.getPipeline().getLast();
        if (null == handler) {
            throw new NoResponseHandlerException("Could not retrieve the response handler from the channel's pipeline.");
        }
        return handler;
    }
View Full Code Here

TOP

Related Classes of org.apache.hedwig.client.exceptions.NoResponseHandlerException

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.