Class ChannelPoolSettings.Builder (2.20.0)

Stay organized with collections Save and categorize content based on your preferences.
public abstract static class ChannelPoolSettings.Builder

Inheritance

java.lang.Object > ChannelPoolSettings.Builder

Constructors

Builder()

public Builder()

Methods

build()

public ChannelPoolSettings build()
Returns
TypeDescription
ChannelPoolSettings

setInitialChannelCount(int count)

public abstract ChannelPoolSettings.Builder setInitialChannelCount(int count)
Parameter
NameDescription
countint
Returns
TypeDescription
ChannelPoolSettings.Builder

setMaxChannelCount(int count)

public abstract ChannelPoolSettings.Builder setMaxChannelCount(int count)
Parameter
NameDescription
countint
Returns
TypeDescription
ChannelPoolSettings.Builder

setMaxRpcsPerChannel(int count)

public abstract ChannelPoolSettings.Builder setMaxRpcsPerChannel(int count)
Parameter
NameDescription
countint
Returns
TypeDescription
ChannelPoolSettings.Builder

setMinChannelCount(int count)

public abstract ChannelPoolSettings.Builder setMinChannelCount(int count)
Parameter
NameDescription
countint
Returns
TypeDescription
ChannelPoolSettings.Builder

setMinRpcsPerChannel(int count)

public abstract ChannelPoolSettings.Builder setMinRpcsPerChannel(int count)
Parameter
NameDescription
countint
Returns
TypeDescription
ChannelPoolSettings.Builder

setPreemptiveRefreshEnabled(boolean enabled)

public abstract ChannelPoolSettings.Builder setPreemptiveRefreshEnabled(boolean enabled)
Parameter
NameDescription
enabledboolean
Returns
TypeDescription
ChannelPoolSettings.Builder