public class SharedChannelPoolOptions extends Object
| Constructor and Description |
|---|
SharedChannelPoolOptions()
Creates SharedChannelPoolOptions.
|
| Modifier and Type | Method and Description |
|---|---|
SharedChannelPoolOptions |
clone() |
long |
idleChannelKeepAliveDurationInSec() |
int |
poolSize() |
SharedChannelPoolOptions |
withIdleChannelKeepAliveDurationInSec(long ttlDurationInSec)
Duration in sec to keep the connection alive in available pool before closing it.
|
SharedChannelPoolOptions |
withPoolSize(int poolSize)
Sets the max number of connections allowed in the pool.
|
public SharedChannelPoolOptions()
public SharedChannelPoolOptions withIdleChannelKeepAliveDurationInSec(long ttlDurationInSec)
ttlDurationInSec - the durationpublic long idleChannelKeepAliveDurationInSec()
public SharedChannelPoolOptions withPoolSize(int poolSize)
poolSize - the size of the poolpublic int poolSize()
public SharedChannelPoolOptions clone()
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/