public class ChannelPoolOptions extends Object
ChannelPool
.ChannelPoolFactory
,
LazyChannelPool
Constructor and Description |
---|
ChannelPoolOptions() |
Modifier and Type | Method and Description |
---|---|
Integer |
getMaxCacheSize() |
Scheduler |
getSubscriptionScheduler() |
ChannelPoolOptions |
maxCacheSize(int maxCacheSize)
Set the maximum size of the pool.
|
ChannelPoolOptions |
subscriptionScheduler(Scheduler subscriptionScheduler)
Set the scheduler to use when opening
Channel s. |
public ChannelPoolOptions maxCacheSize(int maxCacheSize)
Default is 5 channels.
maxCacheSize
- ChannelPoolOptions
instancepublic ChannelPoolOptions subscriptionScheduler(@Nullable Scheduler subscriptionScheduler)
Channel
s.subscriptionScheduler
- ChannelPoolOptions
instance