Interface Attachable

All Known Subinterfaces:
IStream
All Known Implementing Classes:
HTTP2Stream, HTTP3Stream, HTTP3StreamClient, HTTP3StreamServer, HttpConnection, HttpConnectionOverFCGI, HttpConnectionOverHTTP, HttpConnectionOverHTTP2, HttpConnectionOverHTTP3

public interface Attachable
Abstract mechanism to support attachment of miscellaneous objects.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
    setAttachment(Object attachment)
    Attaches the given object to this stream for later retrieval.
  • Method Details

    • getAttachment

      Object getAttachment()
      Returns:
      the object attached to this instance
      See Also:
    • setAttachment

      void setAttachment(Object attachment)
      Attaches the given object to this stream for later retrieval.
      Parameters:
      attachment - the object to attach to this instance