Class PreservingThreadContextCompletionHandler<E>

java.lang.Object
com.ning.http.util.PreservingThreadContextCompletionHandler<E>
Type Parameters:
E - see CompletionHandler
All Implemented Interfaces:
org.glassfish.grizzly.CompletionHandler<E>

public class PreservingThreadContextCompletionHandler<E> extends Object implements org.glassfish.grizzly.CompletionHandler<E>
Completion handler wrapper that preserves the construction class loader and MDC on its methods executions.
  • Constructor Details

    • PreservingThreadContextCompletionHandler

      public PreservingThreadContextCompletionHandler(org.glassfish.grizzly.CompletionHandler<E> delegate)
  • Method Details

    • cancelled

      public void cancelled()
      Specified by:
      cancelled in interface org.glassfish.grizzly.CompletionHandler<E>
    • failed

      public void failed(Throwable throwable)
      Specified by:
      failed in interface org.glassfish.grizzly.CompletionHandler<E>
    • completed

      public void completed(E e)
      Specified by:
      completed in interface org.glassfish.grizzly.CompletionHandler<E>
    • updated

      public void updated(E e)
      Specified by:
      updated in interface org.glassfish.grizzly.CompletionHandler<E>