Exemple #1
0
 public TempRunnable(DefaultConnectionManager defaultConnectionManager, ConnectionPool connectionPool, Url url, string taskName)
 {
     this.defaultConnectionManager = defaultConnectionManager;
     this.connectionPool           = connectionPool;
     this.url      = url;
     this.taskName = taskName;
 }
Exemple #2
0
 public DefaultConnectionMonitor(ConnectionMonitorStrategy strategy, DefaultConnectionManager connectionManager)
 {
     this.strategy          = strategy ?? throw new ArgumentException("null strategy");
     this.connectionManager = connectionManager ?? throw new ArgumentException("null connectionManager");
 }
Exemple #3
0
 /// <summary>
 /// create a <seealso cref="ConnectionPool"/> and init connections with the specified <seealso cref="Url"/>
 /// </summary>
 /// <param name="url"> target url </param>
 public ConnectionPoolCall(DefaultConnectionManager outerInstance, Url url)
 {
     this.outerInstance    = outerInstance;
     whetherInitConnection = true;
     this.url = url;
 }
Exemple #4
0
 /// <summary>
 /// create a <seealso cref="ConnectionPool"/> and init connections with the specified <seealso cref="Url"/>
 /// </summary>
 /// <param name="url"> target url </param>
 public HealConnectionCall(DefaultConnectionManager outerInstance, Url url, ConnectionPool pool)
 {
     this.outerInstance = outerInstance;
     this.url           = url;
     this.pool          = pool;
 }
Exemple #5
0
 /// <summary>
 /// create a <seealso cref="ConnectionPool"/> but not init connections
 /// </summary>
 public ConnectionPoolCall(DefaultConnectionManager outerInstance)
 {
     this.outerInstance    = outerInstance;
     whetherInitConnection = false;
 }