Package io.grpc.netty
Class Utils.DefaultEventLoopGroupResource
java.lang.Object
io.grpc.netty.Utils.DefaultEventLoopGroupResource
- All Implemented Interfaces:
SharedResourceHolder.Resource<io.netty.channel.EventLoopGroup>
- Enclosing class:
Utils
private static final class Utils.DefaultEventLoopGroupResource
extends Object
implements SharedResourceHolder.Resource<io.netty.channel.EventLoopGroup>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Utils.EventLoopGroupType
private final String
private final int
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultEventLoopGroupResource
(int numEventLoops, String name, Utils.EventLoopGroupType eventLoopGroupType) -
Method Summary
-
Field Details
-
name
-
numEventLoops
private final int numEventLoops -
eventLoopGroupType
-
-
Constructor Details
-
DefaultEventLoopGroupResource
DefaultEventLoopGroupResource(int numEventLoops, String name, Utils.EventLoopGroupType eventLoopGroupType)
-
-
Method Details
-
create
public io.netty.channel.EventLoopGroup create()Description copied from interface:SharedResourceHolder.Resource
Create a new instance of the resource.- Specified by:
create
in interfaceSharedResourceHolder.Resource<io.netty.channel.EventLoopGroup>
-
close
public void close(io.netty.channel.EventLoopGroup instance) Description copied from interface:SharedResourceHolder.Resource
Destroy the given instance.- Specified by:
close
in interfaceSharedResourceHolder.Resource<io.netty.channel.EventLoopGroup>
-
toString
-