Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,10 @@ public ClientFactoryBuilder workerGroup(int numThreads) {
/**
* Sets the factory that creates an {@link EventLoopScheduler} which is responsible for assigning an
* {@link EventLoop} to handle a connection to the specified {@link Endpoint}.
* @deprecated This factory method lacks the ability to build a sophisticated scheduler.
* Use the method that requires an EventLoopSchedulerFactory instead.
*/
@Deprecated
public ClientFactoryBuilder eventLoopSchedulerFactory(
Function<? super EventLoopGroup, ? extends EventLoopScheduler> eventLoopSchedulerFactory) {
requireNonNull(eventLoopSchedulerFactory, "eventLoopSchedulerFactory");
Expand All @@ -169,6 +172,19 @@ public ClientFactoryBuilder eventLoopSchedulerFactory(
return this;
}

/**
* Sets the factory that creates an {@link EventLoopScheduler} which is responsible for assigning an
* {@link EventLoop} to handle a connection to the specified {@link Endpoint}.
* @deprecated This factory method lacks the ability to build a sophisticated scheduler.
* Use the method that requires an EventLoopSchedulerFactory instead.
*/
@Deprecated
public ClientFactoryBuilder eventLoopSchedulerFactory(EventLoopSchedulerFactory eventLoopSchedulerFactory){
requireNonNull(eventLoopSchedulerFactory, "eventLoopSchedulerFactory");
option(ClientFactoryOptions.CUSTOM_EVENT_LOOP_SCHEDULER_FACTORY, eventLoopSchedulerFactory);
return this;
}

/**
* Sets the maximum number of {@link EventLoop}s which will be used to handle HTTP/1.1 connections
* except the ones specified by {@link #maxNumEventLoopsFunction(ToIntFunction)}.
Expand Down
Loading