public TempRunnable(DefaultConnectionManager defaultConnectionManager, ConnectionPool connectionPool, Url url, string taskName) { this.defaultConnectionManager = defaultConnectionManager; this.connectionPool = connectionPool; this.url = url; this.taskName = taskName; }
public DefaultConnectionMonitor(ConnectionMonitorStrategy strategy, DefaultConnectionManager connectionManager) { this.strategy = strategy ?? throw new ArgumentException("null strategy"); this.connectionManager = connectionManager ?? throw new ArgumentException("null connectionManager"); }
/// <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; }
/// <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; }
/// <summary> /// create a <seealso cref="ConnectionPool"/> but not init connections /// </summary> public ConnectionPoolCall(DefaultConnectionManager outerInstance) { this.outerInstance = outerInstance; whetherInitConnection = false; }