Class SharedSdkEventLoopGroup
- java.lang.Object
-
- software.amazon.awssdk.http.nio.netty.internal.SharedSdkEventLoopGroup
-
public final class SharedSdkEventLoopGroup extends Object
Provides access and manages a sharedSdkEventLoopGroup
. Uses reference counting to keep track of how many HTTP clients are using the shared event loop group and will automatically close it when that count reaches zero. Event loop group is lazily initialized for the first time and and subsequent requests after the count reaches zero.
-
-
Method Detail
-
get
public static SdkEventLoopGroup get()
- Returns:
- The default
SdkEventLoopGroup
that will be shared across all service clients. This is used when the customer does not specify a customSdkEventLoopGroup
orSdkEventLoopGroup.Builder
. Each SdkEventLoopGroup returned is wrapped with a newSharedSdkEventLoopGroup.ReferenceCountingEventLoopGroup
.
-
-