-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
finagle-netty4: Add epollEventLoopGroupClassName flag
Problem We need to be able to use custom implementation of event loop, e.g. with additional logging or metrics. Solution Add com.twitter.finagle.netty4.epollEventLoopGroupClassName flag. It specifies the full classname that should be used instead of default netty implementation. JIRA Issues: STOR-8478 Differential Revision: https://phabricator.twitter.biz/D1185136
- Loading branch information
Ivan Gorbachev
authored and
jenkins
committed
Nov 26, 2024
1 parent
744e0ae
commit dc5f647
Showing
3 changed files
with
35 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
finagle-netty4/src/main/scala/com/twitter/finagle/netty4/epollEventLoopGroupClassName.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.twitter.finagle.netty4 | ||
|
||
import com.twitter.app.GlobalFlag | ||
|
||
/** | ||
* Create custom EventLoopGroup instead of default EpollEventLoopGroup or NioEventLoopGroup. | ||
* This can be useful to run alternative implementations, e.g. with additional instrumentation. | ||
* The provided value must be full class name, e.g. io.netty.channel.epoll.EpollEventLoopGroup, | ||
* which implements io.netty.channel.MultithreadEventLoopGroup | ||
*/ | ||
private object epollEventLoopGroupClassName | ||
extends GlobalFlag[String]("", "Create custom EventLoopGroup") |