Examples of MetaOpeartionTimeoutException


Examples of com.taobao.metamorphosis.exception.MetaOpeartionTimeoutException

        }
        catch (final MetaClientException e) {
            throw e;
        }
        catch (final TimeoutException e) {
            throw new MetaOpeartionTimeoutException("Send message timeout in "
                    + this.consumerConfig.getFetchTimeoutInMills() + " mills");
        }
        catch (final Exception e) {
            throw new MetaClientException("get offset failed,topic=" + fetchRequest.getTopic() + ",partition="
                    + fetchRequest.getPartition() + ",current offset=" + fetchRequest.getOffset(), e);
View Full Code Here

Examples of com.taobao.metamorphosis.exception.MetaOpeartionTimeoutException

                }
            }

        }
        catch (final TimeoutException e) {
            throw new MetaOpeartionTimeoutException("Send message timeout in "
                    + this.consumerConfig.getFetchTimeoutInMills() + " mills");
        }
        catch (final MetaClientException e) {
            throw e;
        }
View Full Code Here

Examples of com.taobao.metamorphosis.exception.MetaOpeartionTimeoutException

                statsResult.setSuccess(false);
            }
        }
        catch (TimeoutException e) {
            statsResult
                .setException(new MetaOpeartionTimeoutException("Send message timeout in " + timeout + " mills"));
        }
        catch (InterruptedException e) {
            // ignore
            statsResult.setException(e);
        }
View Full Code Here

Examples of com.taobao.metamorphosis.exception.MetaOpeartionTimeoutException

                result = this.send0(message, data, timeout, unit);
                if (result.isSuccess()) {
                    break;
                }
                if (System.currentTimeMillis() - start >= timeoutInMills) {
                    throw new MetaOpeartionTimeoutException("Send message timeout in " + timeoutInMills + " mills");
                }
                retry++;
            }
        }
        finally {
View Full Code Here

Examples of com.taobao.metamorphosis.exception.MetaOpeartionTimeoutException

                        this.getTransactionId(), OpaqueGenerator.getNextOpaque());
            final BooleanCommand resp = this.invokeToGroup(serverUrl, partition, putCommand, message, timeout, unit);
            return this.genSendResult(message, partition, serverUrl, resp);
        }
        catch (final TimeoutException e) {
            throw new MetaOpeartionTimeoutException("Send message timeout in "
                    + TimeUnit.MILLISECONDS.convert(timeout, unit) + " mills");
        }
        catch (final InterruptedException e) {
            throw e;
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.