congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
CallbackHandler.onError
Code IndexAdd Tabnine to your IDE (free)

How to use
onError
method
in
com.ning.metrics.serialization.writer.CallbackHandler

Best Java code snippets using com.ning.metrics.serialization.writer.CallbackHandler.onError (Showing top 2 results out of 315)

origin: com.ning/metrics.eventtracker-http

  @Override
  public void onThrowable(final Throwable t)
  {
    activeRequests.decrementAndGet();
    handler.onError(t, file);
  }
};
origin: com.ning/metrics.eventtracker-http

@Override
public Response onCompleted(final Response response)
{
  activeRequests.decrementAndGet();
  if (response.getStatusCode() == 202) {
    handler.onSuccess(file);
  }
  else {
    handler.onError(new IOException(String.format("Received response %d: %s",
                           response.getStatusCode(), response.getStatusText())), file);
  }
  sendTimer.update(System.nanoTime() - startTime, TimeUnit.NANOSECONDS);
  return response; // never read
}
com.ning.metrics.serialization.writerCallbackHandleronError

Popular methods of CallbackHandler

  • onSuccess

Popular in Java

  • Making http post requests using okhttp
  • putExtra (Intent)
  • getSystemService (Context)
  • getSharedPreferences (Context)
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • JCheckBox (javax.swing)
  • JPanel (javax.swing)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now