-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2971d53
commit f032a0b
Showing
4 changed files
with
44 additions
and
5 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
...s/netty/deployment/src/main/java/io/quarkus/netty/deployment/EventLoopGroupBuildItem.java
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,30 @@ | ||
package io.quarkus.netty.deployment; | ||
|
||
import java.util.function.Supplier; | ||
|
||
import io.netty.channel.EventLoopGroup; | ||
import io.quarkus.builder.item.SimpleBuildItem; | ||
|
||
/** | ||
* Provides suppliers that return EventLoopGroup used by the application. | ||
* | ||
* See EventLoopSupplierBuildItem to register custom EventLoopGroup | ||
*/ | ||
public final class EventLoopGroupBuildItem extends SimpleBuildItem { | ||
private final Supplier<EventLoopGroup> bossEventLoopGroup; | ||
private final Supplier<EventLoopGroup> mainEventLoopGroup; | ||
|
||
public EventLoopGroupBuildItem(Supplier<EventLoopGroup> boss, Supplier<EventLoopGroup> main) { | ||
this.bossEventLoopGroup = boss; | ||
this.mainEventLoopGroup = main; | ||
} | ||
|
||
public Supplier<EventLoopGroup> getBossEventLoopGroup() { | ||
return bossEventLoopGroup; | ||
} | ||
|
||
public Supplier<EventLoopGroup> getMainEventLoopGroup() { | ||
return mainEventLoopGroup; | ||
} | ||
|
||
} |
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
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