final IdFilter filter = IdFilter.of(Collections.singleton(udwId),
Collections.singleton(IdConstants.CONVERSATION_WAVELET_PREFIX));
WaveletDataImpl.Factory snapshotFactory =
WaveletDataImpl.Factory.create(getDocumentRegistry());
final OperationChannelMultiplexer mux =
new OperationChannelMultiplexerImpl(getWave().getWaveId(),
viewFactory,
snapshotFactory,
loggers,
unsyncedListeners,
scheduler,
hashFactory);
final WaveViewImpl<OpBasedWavelet> wave = getWave();
return new MuxConnector() {
@Override
public void connect(Command onOpened) {
LiveChannelBinder.openAndBind(getWavelets(),
wave,
getDocumentRegistry(),
mux,
filter,
onOpened);
}
@Override
public void close() {
mux.close();
}
};
}