congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
HttpInput$ErrorState
Code IndexAdd Tabnine to your IDE (free)

How to use
HttpInput$ErrorState
in
org.eclipse.jetty.server

Best Java code snippets using org.eclipse.jetty.server.HttpInput$ErrorState (Showing top 5 results out of 315)

origin: jenkinsci/winstone

public boolean failed(Throwable x)
{
  synchronized (_inputQ)
  {
    // Errors may be reported multiple times, for example
    // a local idle timeout and a remote I/O failure.
    if (isError())
    {
      if (LOG.isDebugEnabled())
      {
        // Log both the original and current failure
        // without modifying the original failure.
        Throwable failure = new Throwable(_state.getError());
        failure.addSuppressed(x);
        LOG.debug(failure);
      }
    }
    else
    {
      // Add a suppressed throwable to capture this stack
      // trace without wrapping/hiding the original failure.
      x.addSuppressed(new Throwable("HttpInput failure"));
      _state = new ErrorState(x);
    }
    return wakeup();
  }
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jetty.server

error = _state instanceof ErrorState?((ErrorState)_state).getError():null;
origin: jenkinsci/winstone

public boolean consumeAll()
{
  synchronized (_inputQ)
  {
    try
    {
      while (true)
      {
        Content item = nextContent();
        if (item == null)
          break; // Let's not bother blocking
        skip(item, item.remaining());
      }
      if (isFinished())
        return !isError();
      _state = EARLY_EOF;
      return false;
    }
    catch (Throwable e)
    {
      LOG.debug(e);
      _state = new ErrorState(e);
      return false;
    }
  }
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jetty.server

public boolean failed(Throwable x)
{
  boolean woken=false;
  synchronized (_inputQ)
  {
    if (_state instanceof ErrorState)
      LOG.warn(x);
    else
      _state = new ErrorState(x);
    if (_listener==null)
      _inputQ.notify();
    else
      woken=_channelState.onReadPossible();
  }
  return woken;
}
origin: jenkinsci/winstone

public boolean onIdleTimeout(Throwable x)
{
  synchronized (_inputQ)
  {
    boolean neverDispatched = getHttpChannelState().isIdle();
    if ((_waitingForContent || neverDispatched) && !isError())
    {
      x.addSuppressed(new Throwable("HttpInput idle timeout"));
      _state = new ErrorState(x);
      return wakeup();
    }
    return false;
  }
}
org.eclipse.jetty.serverHttpInput$ErrorState

Most used methods

  • <init>
  • getError

Popular in Java

  • Running tasks concurrently on multiple threads
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getResourceAsStream (ClassLoader)
  • setScale (BigDecimal)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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