Example #1
0
        internal ConnectionState(IZookeeperFactory zookeeperFactory,
                                 IEnsembleProvider ensembleProvider,
                                 int sessionTimeoutMs,
                                 int connectionTimeoutMs,
                                 Watcher parentWatcher,
                                 AtomicReference <ITracerDriver> tracer,
                                 bool canBeReadOnly)
        {
            this.ensembleProvider    = ensembleProvider;
            this.sessionTimeoutMs    = sessionTimeoutMs;
            this.connectionTimeoutMs = connectionTimeoutMs;
            this.tracer = tracer;
            if (parentWatcher != null)
            {
                parentWatchers.Enqueue(parentWatcher);
            }

            zooKeeper = new HandleHolder(zookeeperFactory, this, ensembleProvider, sessionTimeoutMs, canBeReadOnly);
        }
Example #2
0
        internal ConnectionState(IZookeeperFactory zookeeperFactory, 
                        IEnsembleProvider ensembleProvider, 
                        int sessionTimeoutMs, 
                        int connectionTimeoutMs, 
                        Watcher parentWatcher, 
                        AtomicReference<ITracerDriver> tracer, 
                        bool canBeReadOnly)
        {
            this.ensembleProvider = ensembleProvider;
            this.sessionTimeoutMs = sessionTimeoutMs;
            this.connectionTimeoutMs = connectionTimeoutMs;
            this.tracer = tracer;
            if (parentWatcher != null)
            {
                parentWatchers.Enqueue(parentWatcher);
            }

            zooKeeper = new HandleHolder(zookeeperFactory, this, ensembleProvider, sessionTimeoutMs, canBeReadOnly);
        }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:System.Object"/> class.
 /// </summary>
 public CloseHelper(HandleHolder handleHolder)
 {
     _handleHolder = handleHolder;
 }
Example #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:System.Object"/> class.
 /// </summary>
 public CloseHelper(HandleHolder handleHolder)
 {
     _handleHolder = handleHolder;
 }