Class BufferedContentChannel

  • All Implemented Interfaces:
    ContentChannel

    public final class BufferedContentChannel
    extends Object
    implements ContentChannel
    This class implements an unlimited, non-blocking content queue. All ContentChannel methods are implemented by pushing to a thread-safe internal queue. All of the queued calls are forwarded to another ContentChannel when connectTo(ContentChannel) is called. Once connected, this class becomes a non-buffering proxy for the connected ContentChannel.
    Author:
    Simon Thoresen Hult