public void addStream(Stream stream) {
        indexSets.add(stream.getIndexSet());
        if (streams.add(stream)) {
            sizeCounter.inc(8);
            if (LOG.isTraceEnabled()) {
                LOG.trace("[Message size update][{}] stream added: {}", getId(), sizeCounter.getCount());
            }
        }
    }
public void addStream ( Stream stream ) { indexSets . add ( stream . getIndexSet ( ) ) ; if ( streams . add ( stream ) ) { sizeCounter . inc ( 8 ) ; if ( LOG . isTraceEnabled ( ) ) { LOG . trace ( "[Message size update][{}] stream added: {}" , getId ( ) , sizeCounter . getCount ( ) ) ; } } }
Assign the given stream to this message.

@param stream the stream to route this message into