Class AbstractStreamWriteFilter<T>

java.lang.Object
org.apache.mina.core.filterchain.IoFilterAdapter
org.apache.mina.filter.stream.AbstractStreamWriteFilter<T>
Type Parameters:
T - The type of Stream
All Implemented Interfaces:
IoFilter
Direct Known Subclasses:
FileRegionWriteFilter, StreamWriteFilter

public abstract class AbstractStreamWriteFilter<T> extends IoFilterAdapter
Filter implementation which makes it possible to write Stream objects directly using IoSession.write(Object).
  • Field Details

    • DEFAULT_STREAM_BUFFER_SIZE

      public static final int DEFAULT_STREAM_BUFFER_SIZE
      The default buffer size this filter uses for writing.
      See Also:
    • CURRENT_STREAM

      protected static final AttributeKey CURRENT_STREAM
      The attribute name used when binding the streaming object to the session.
    • WRITE_REQUEST_QUEUE

      protected static final AttributeKey WRITE_REQUEST_QUEUE
    • CURRENT_WRITE_REQUEST

      protected static final AttributeKey CURRENT_WRITE_REQUEST
    • writeBufferSize

      private int writeBufferSize
  • Constructor Details

    • AbstractStreamWriteFilter

      public AbstractStreamWriteFilter()
  • Method Details