Package com.google.walkaround.util.server.servlet

Examples of com.google.walkaround.util.server.servlet.TryAgainLaterException


        new ServletAuthHelper.NeedNewOAuthTokenHandler() {
          @Override public void sendNeedTokenResponse() throws IOException {
            // TODO(ohler): When loading /import (and probably /inbox as well),
            // check not just whether we have an OAuth token, but also whether
            // it's still valid.
            throw new TryAgainLaterException(
                "Need OAuth token.  Let's hope the user re-enables interactively: "
                + userId);
          }
      });
  }
View Full Code Here


            // back off, we degrade smoothly - and if it's just that server
            // that's under load, the situation will rectify itself after
            // the memcache association expires.
            log.log(Level.WARNING, "Backend threw exception, getting client to back off", e);
            monitoring.incrementCounter("affinity-backend-overloaded-backing-off");
            throw new TryAgainLaterException("Client back off due to load", e);
          } else {
            // Maybe we're under-provisioned in terms of store servers.
            // In this case, where the object was not mapped, it's far less
            // likely that doing the work locally would contend with a backend
            // trying to process mutations for that object. So we do the
View Full Code Here

TOP

Related Classes of com.google.walkaround.util.server.servlet.TryAgainLaterException

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.