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