[ 
https://issues.apache.org/jira/browse/TINKERPOP-1774?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16566764#comment-16566764
 ] 

ASF GitHub Bot commented on TINKERPOP-1774:
-------------------------------------------

Github user FlorianHockmann commented on a diff in the pull request:

    https://github.com/apache/tinkerpop/pull/903#discussion_r207220819
  
    --- Diff: gremlin-dotnet/src/Gremlin.Net/Driver/ConnectionPoolSettings.cs 
---
    @@ -0,0 +1,55 @@
    +#region License
    +
    +/*
    + * Licensed to the Apache Software Foundation (ASF) under one
    + * or more contributor license agreements.  See the NOTICE file
    + * distributed with this work for additional information
    + * regarding copyright ownership.  The ASF licenses this file
    + * to you under the Apache License, Version 2.0 (the
    + * "License"); you may not use this file except in compliance
    + * with the License.  You may obtain a copy of the License at
    + *
    + *     http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing,
    + * software distributed under the License is distributed on an
    + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    + * KIND, either express or implied.  See the License for the
    + * specific language governing permissions and limitations
    + * under the License.
    + */
    +
    +#endregion
    +
    +using System;
    +
    +namespace Gremlin.Net.Driver
    +{
    +    /// <summary>
    +    ///     Holds settings for the <see cref="ConnectionPool"/>.
    +    /// </summary>
    +    public class ConnectionPoolSettings
    +    {
    +        private const int DefaultMinPoolSize = 8;
    +        private const int DefaultMaxPoolSize = 128;
    +        private static readonly TimeSpan DefaultWaitForConnectionTimeout = 
TimeSpan.FromSeconds(3);
    +
    +        /// <summary>
    +        ///     Gets or sets the minimum size of a connection pool.
    --- End diff --
    
    Yes, that's a good idea. The API docs should be published somewhere. I 
already did this for the early pre-TinkerPop version of Gremlin.Net: 
https://florianhockmann.github.io/Gremlin.Net/api/Gremlin.Net.html
    We could probably use a similar approach again.


> Gremlin .NET: Support min and max sizes in Connection pool
> ----------------------------------------------------------
>
>                 Key: TINKERPOP-1774
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-1774
>             Project: TinkerPop
>          Issue Type: Improvement
>          Components: dotnet
>    Affects Versions: 3.2.7
>            Reporter: Jorge Bay
>            Assignee: Florian Hockmann
>            Priority: Minor
>
> Similar to the java connection pool, we should limit the maximum amount of 
> connections and start with a minimum number.
> It would also a good opportunity to remove the synchronous acquisitions of 
> {{lock}} in the pool implementation.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to