Interface Components


public interface Components
Common components made available via a Request.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.eclipse.jetty.io.ByteBufferPool
     
    org.eclipse.jetty.util.Attributes
    A map-like object that can be used as a cache (for example, as a cookie cache).
    default Executor
     
    org.eclipse.jetty.util.thread.Scheduler
     
    org.eclipse.jetty.util.thread.ThreadPool
    Deprecated, for removal: This API element is subject to removal in a future version.
    use getExecutor() instead
  • Method Details

    • getByteBufferPool

      org.eclipse.jetty.io.ByteBufferPool getByteBufferPool()
      Returns:
      the ByteBufferPool associated with the Request
    • getScheduler

      org.eclipse.jetty.util.thread.Scheduler getScheduler()
      Returns:
      the Scheduler associated with the Request
    • getThreadPool

      @Deprecated(since="12.0.13", forRemoval=true) org.eclipse.jetty.util.thread.ThreadPool getThreadPool()
      Deprecated, for removal: This API element is subject to removal in a future version.
      use getExecutor() instead
      Returns:
      the ThreadPool associated with the Request
    • getExecutor

      default Executor getExecutor()
      Returns:
      the Executor associated with the Request
    • getCache

      org.eclipse.jetty.util.Attributes getCache()

      A map-like object that can be used as a cache (for example, as a cookie cache).

      The cache will have a life cycle limited by the connection, i.e. no cache map will live longer that the connection associated with it. However, a cache may have a shorter life than a connection (e.g. it may be discarded for implementation reasons). A cache map is guaranteed to be given to only a single request concurrently (scoped by HttpChannelState), so objects saved there do not need to be made safe from access by simultaneous request. If the connection is known to be non-persistent then the cache may be a noop cache and discard all items set on it.

      Returns:
      A map-like object, which may be an empty implementation that discards all items.