Exemple #1
0
        /** <inheritdoc /> */
        public IDataStreamer <TK, TV> GetDataStreamer <TK, TV>(string cacheName)
        {
            IgniteArgumentCheck.NotNull(cacheName, "cacheName");

            return(new DataStreamerImpl <TK, TV>(UU.ProcessorDataStreamer(_proc, cacheName, false),
                                                 _marsh, cacheName, false));
        }
Exemple #2
0
        /** <inheritDoc /> */
        public IDataStreamer <TK1, TV1> WithKeepBinary <TK1, TV1>()
        {
            if (_keepBinary)
            {
                var result = this as IDataStreamer <TK1, TV1>;

                if (result == null)
                {
                    throw new InvalidOperationException(
                              "Can't change type of binary streamer. WithKeepBinary has been called on an instance of " +
                              "binary streamer with incompatible generic arguments.");
                }

                return(result);
            }

            return(new DataStreamerImpl <TK1, TV1>(UU.ProcessorDataStreamer(Marshaller.Ignite.InteropProcessor,
                                                                            _cacheName, true), Marshaller, _cacheName, true));
        }
Exemple #3
0
 /** <inheritdoc /> */
 public IDataStreamer <TK, TV> GetDataStreamer <TK, TV>(string cacheName)
 {
     return(new DataStreamerImpl <TK, TV>(UU.ProcessorDataStreamer(_proc, cacheName, false),
                                          _marsh, cacheName, false));
 }