stream or message. In stream mode, TransportFilter produces/consumes the socket channel directly. In message mode, TransportFilter represents {@link Connection}data as {@link Buffer}, using {@link FilterChainContext#getMessage()}}, {@link FilterChainContext#setMessage(Object)}. For specific {@link Transport}, one mode could be more preferable than another. For example {@link TCPNIOTransport } works just instream mode. {@link UDPNIOTransport }prefers message mode, but could also work in stream mode.
@author Alexey Stashok
| |
| |
| |
| |
| |
| |