Package org.waveprotocol.wave.concurrencycontrol.channel

Examples of org.waveprotocol.wave.concurrencycontrol.channel.OperationChannelMultiplexerImpl


          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();
        }
      };
    }
View Full Code Here


    MockWaveViewService waveViewService = new MockWaveViewService();


    OperationChannelMultiplexerImpl.LoggerContext loggers =
        new OperationChannelMultiplexerImpl.LoggerContext(logger, logger, logger, logger);
    OperationChannelMultiplexerImpl mux = new OperationChannelMultiplexerImpl(WAVE_ID,
        ViewChannelImpl.factory(waveViewService, logger),
        WaveletDataImpl.Factory.create(docFactory),
        loggers, null, new ImmediateExcecutionScheduler(), FakeHashedVersionFactory.INSTANCE);
    CcBasedWaveView waveView = CcBasedWaveViewImpl.create(docFactory, SCHEMAS, WAVE_ID, USER_ID,
        mux, IdFilters.ALL_IDS, idGenerator, logger,
View Full Code Here

          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();
        }
      };
    }
View Full Code Here

TOP

Related Classes of org.waveprotocol.wave.concurrencycontrol.channel.OperationChannelMultiplexerImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.