Package com.oracle.coherence.client
Class ChannelProviders
- java.lang.Object
-
- com.oracle.coherence.client.ChannelProviders
-
@Deprecated(since="22.06.2") public class ChannelProviders extends Object
Deprecated.A provider of gRPC channels.Named
Channelinstances are provided by instances ofChannelProviderdiscovered by theServiceLoaderor manually added to this provider.When providing a
Channelthe registered or discovered providers will be tried inpriorityorder.The providers are lazilly loaded the first time a channel is required.
- Since:
- 20.12
- Author:
- Jonathan Knight 2020.12.17
-
-
Field Summary
Fields Modifier and Type Field Description static ChannelProvidersINSTANCEDeprecated.The singleton instance ofChannelProviders.
-
Constructor Summary
Constructors Modifier Constructor Description protectedChannelProviders()Deprecated.Protected constructor as this is a typically a singleton accessed viaINSTANCE.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ChannelProvidersadd(ChannelProvider provider)Deprecated.Add aChannelProviderto the registry.Optional<io.grpc.Channel>findChannel(String sName)Deprecated.Find aChannelfrom one of the channel providers.
-
-
-
Field Detail
-
INSTANCE
public static final ChannelProviders INSTANCE
Deprecated.The singleton instance ofChannelProviders.
-
-
Constructor Detail
-
ChannelProviders
protected ChannelProviders()
Deprecated.Protected constructor as this is a typically a singleton accessed viaINSTANCE.
-
-
Method Detail
-
findChannel
public Optional<io.grpc.Channel> findChannel(String sName)
Deprecated.Find aChannelfrom one of the channel providers.- Parameters:
sName- the name of the channel- Returns:
- the
Channelinstance or an emptyOptionalif no provider exists with the specified name
-
add
public ChannelProviders add(ChannelProvider provider)
Deprecated.Add aChannelProviderto the registry.- Parameters:
provider- the provider to add- Returns:
- this
ChannelProvider
-
-