Package org.apache.hedwig.exceptions.PubSubException

Examples of org.apache.hedwig.exceptions.PubSubException.UncertainStateException


                // Current PubSubRequest has timed out so remove it from the
                // ResponseHandler's map and invoke the VoidCallback's
                // operationFailed method.
                logger.error("Current PubSubRequest has timed out for pubSubData: " + pubSubData);
                responseHandler.txn2PubSubData.remove(pubSubData.txnId);
                pubSubData.callback.operationFailed(pubSubData.context, new UncertainStateException(
                                                        "Server ack response never received so PubSubRequest has timed out!"));
            }
        }
View Full Code Here


        // never received.
        for (PubSubData pubSubData : txn2PubSubData.values()) {
            if (logger.isDebugEnabled())
                logger.debug("Channel disconnected so invoking the operationFailed callback for pubSubData: "
                             + pubSubData);
            pubSubData.callback.operationFailed(pubSubData.context, new UncertainStateException(
                                                    "Server ack response never received before server connection disconnected!"));
        }
        txn2PubSubData.clear();
    }
View Full Code Here

        // never received.
        for (PubSubData pubSubData : txn2PubSubData.values()) {
            if (logger.isDebugEnabled())
                logger.debug("Channel disconnected so invoking the operationFailed callback for pubSubData: "
                             + pubSubData);
            pubSubData.callback.operationFailed(pubSubData.context, new UncertainStateException(
                                                    "Server ack response never received before server connection disconnected!"));
        }
        txn2PubSubData.clear();
    }
View Full Code Here

                // Current PubSubRequest has timed out so remove it from the
                // ResponseHandler's map and invoke the VoidCallback's
                // operationFailed method.
                logger.error("Current PubSubRequest has timed out for pubSubData: " + pubSubData);
                responseHandler.txn2PubSubData.remove(pubSubData.txnId);
                pubSubData.callback.operationFailed(pubSubData.context, new UncertainStateException(
                                                        "Server ack response never received so PubSubRequest has timed out!"));
            }
        }
View Full Code Here

            // ResponseHandler's map and invoke the VoidCallback's
            // operationFailed method.
            logger.error("Current PubSubRequest has timed out for pubSubData: " + pubSubData);
            txn2PubSubData.remove(pubSubData.txnId);
            pubSubData.getCallback().operationFailed(pubSubData.context,
                new UncertainStateException("Server ack response never received so PubSubRequest has timed out!"));
        }
    }
View Full Code Here

        // we're not sure of the state of the request since the ack response was
        // never received.
        for (PubSubData pubSubData : txn2PubSubData.values()) {
            logger.debug("Channel disconnected so invoking the operationFailed callback for pubSubData: {}",
                         pubSubData);
            pubSubData.getCallback().operationFailed(pubSubData.context, new UncertainStateException(
                                                     "Server ack response never received before server connection disconnected!"));
        }
        txn2PubSubData.clear();
    }
View Full Code Here

TOP

Related Classes of org.apache.hedwig.exceptions.PubSubException.UncertainStateException

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.