Tabnine Logo
HttpInput$ErrorState.<init>
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using org.eclipse.jetty.server.HttpInput$ErrorState.<init> (Showing top 4 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: 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;
  }
}
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 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;
    }
  }
}
org.eclipse.jetty.serverHttpInput$ErrorState<init>

Popular methods of HttpInput$ErrorState

  • getError

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (Timer)
  • getSupportFragmentManager (FragmentActivity)
  • notifyDataSetChanged (ArrayAdapter)
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Collectors (java.util.stream)
  • JPanel (javax.swing)
  • Top 12 Jupyter Notebook Extensions
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