Package ru.tinkoff.grpc.client
Class ManagedChannelLifecycle
java.lang.Object
ru.tinkoff.grpc.client.ManagedChannelLifecycle
- All Implemented Interfaces:
ru.tinkoff.kora.application.graph.Lifecycle,ru.tinkoff.kora.application.graph.Wrapped<io.grpc.ManagedChannel>
public final class ManagedChannelLifecycle
extends Object
implements ru.tinkoff.kora.application.graph.Lifecycle, ru.tinkoff.kora.application.graph.Wrapped<io.grpc.ManagedChannel>
-
Nested Class Summary
Nested classes/interfaces inherited from interface ru.tinkoff.kora.application.graph.Wrapped
ru.tinkoff.kora.application.graph.Wrapped.UnwrappedValue<T extends Object> -
Constructor Summary
ConstructorsConstructorDescriptionManagedChannelLifecycle(GrpcClientConfig config, io.grpc.ChannelCredentials channelCredentials, ru.tinkoff.kora.application.graph.All<io.grpc.ClientInterceptor> interceptors, GrpcClientTelemetryFactory telemetryFactory, GrpcClientChannelFactory channelFactory, io.grpc.ServiceDescriptor serviceDefinition) -
Method Summary
-
Constructor Details
-
ManagedChannelLifecycle
public ManagedChannelLifecycle(GrpcClientConfig config, @Nullable io.grpc.ChannelCredentials channelCredentials, ru.tinkoff.kora.application.graph.All<io.grpc.ClientInterceptor> interceptors, GrpcClientTelemetryFactory telemetryFactory, GrpcClientChannelFactory channelFactory, io.grpc.ServiceDescriptor serviceDefinition)
-
-
Method Details
-
init
public void init()- Specified by:
initin interfaceru.tinkoff.kora.application.graph.Lifecycle
-
release
public void release()- Specified by:
releasein interfaceru.tinkoff.kora.application.graph.Lifecycle
-
value
public io.grpc.ManagedChannel value()- Specified by:
valuein interfaceru.tinkoff.kora.application.graph.Wrapped<io.grpc.ManagedChannel>
-