Skip to content
Open
Changes from 1 commit
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
@@ -0,0 +1,15 @@
package com.linecorp.armeria.client;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing copyright


import io.netty.channel.EventLoopGroup;

import java.util.List;
import java.util.function.ToIntFunction;

@FunctionalInterface
public interface EventLoopSchedulerFactory {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you deprecate the following API and add a new API using this interface?

public ClientFactoryBuilder eventLoopSchedulerFactory(
Function<? super EventLoopGroup, ? extends EventLoopScheduler> eventLoopSchedulerFactory) {

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah! Yes, that should be no problem. What does the deprecation process look like?

EventLoopScheduler newScheduler(EventLoopGroup eventLoopGroup,
List<ToIntFunction<Endpoint>> maxNumEventLoopFunctions,
int maxNumEventLoopsFunctions,
int maxNumEventLoopsPerHttp1Endpoint,
long idleTimeOutMillis);
}