Class ChannelPoolSettings.Builder (2.38.0)

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