@@ -92,22 +92,22 @@ export type Config =
9292 } > ;
9393
9494export class Connection {
95- private _activeTasks : number = 0 ;
96- private _agent ?: any ;
97- private _agentOptions : { [ key : string ] : any } ;
98- private _arangoVersion : number = 30400 ;
99- private _headers : { [ key : string ] : string } ;
100- private _loadBalancingStrategy : LoadBalancingStrategy ;
101- private _useFailOver : boolean ;
102- private _shouldRetry : boolean ;
103- private _maxRetries : number ;
104- private _maxTasks : number ;
105- private _queue = new LinkedList < Task > ( ) ;
106- private _hosts : RequestFunction [ ] = [ ] ;
107- private _urls : string [ ] = [ ] ;
108- private _activeHost : number ;
109- private _activeDirtyHost : number ;
110- private _transactionId : string | null = null ;
95+ protected _activeTasks : number = 0 ;
96+ protected _agent ?: any ;
97+ protected _agentOptions : { [ key : string ] : any } ;
98+ protected _arangoVersion : number = 30400 ;
99+ protected _headers : { [ key : string ] : string } ;
100+ protected _loadBalancingStrategy : LoadBalancingStrategy ;
101+ protected _useFailOver : boolean ;
102+ protected _shouldRetry : boolean ;
103+ protected _maxRetries : number ;
104+ protected _maxTasks : number ;
105+ protected _queue = new LinkedList < Task > ( ) ;
106+ protected _hosts : RequestFunction [ ] = [ ] ;
107+ protected _urls : string [ ] = [ ] ;
108+ protected _activeHost : number ;
109+ protected _activeDirtyHost : number ;
110+ protected _transactionId : string | null = null ;
111111
112112 constructor ( config : Config = { } ) {
113113 if ( typeof config === "string" ) config = { url : config } ;
@@ -155,7 +155,7 @@ export class Connection {
155155 }
156156 }
157157
158- private _runQueue ( ) {
158+ protected _runQueue ( ) {
159159 if ( ! this . _queue . length || this . _activeTasks >= this . _maxTasks ) return ;
160160 const task = this . _queue . shift ( ) ! ;
161161 let host = this . _activeHost ;
@@ -220,7 +220,7 @@ export class Connection {
220220 }
221221 }
222222
223- private _buildUrl ( { basePath, path, qs } : UrlInfo ) {
223+ protected _buildUrl ( { basePath, path, qs } : UrlInfo ) {
224224 const pathname = `${ basePath || "" } ${ path || "" } ` ;
225225 let search ;
226226 if ( qs ) {
0 commit comments