Package com.xiaomi.infra.chronos.exception

Examples of com.xiaomi.infra.chronos.exception.FatalChronosException


   * @throws ChronosException if error to set value in ZooKeeper
   */
  public void setPersistentTimestamp(long newTimestamp) throws FatalChronosException,
      ChronosException {
    if (newTimestamp <= persistentTimestamp) {
      throw new FatalChronosException("Fatal error to set a smaller timestamp");
    }

    if (LOG.isDebugEnabled()) {
      LOG.debug("Setting persistent timestamp " + newTimestamp + " in ZooKeeper");
    }
View Full Code Here

TOP

Related Classes of com.xiaomi.infra.chronos.exception.FatalChronosException

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.