public HerculesStreamClient([NotNull] HerculesStreamClientSettings <T> settings, [CanBeNull] ILog log)
        {
            this.settings = settings;
            this.log      = log = (log ?? LogProvider.Get()).ForContext <HerculesStreamClient>();

            bufferPool = new BufferPool(settings.MaxPooledBufferSize, settings.MaxPooledBuffersPerBucket);

            client = new StreamApiRequestSender(settings.Cluster, log, bufferPool, settings.AdditionalSetup);
        }
Ejemplo n.º 2
0
 public HerculesStreamClient([NotNull] HerculesStreamClientSettings settings, [CanBeNull] ILog log) =>