Package com.oracle.coherence.client
Class GrpcChannelFactory.Resolve
- java.lang.Object
-
- com.oracle.coherence.client.GrpcChannelFactory.Resolve
-
- All Implemented Interfaces:
Runnable
- Enclosing class:
- GrpcChannelFactory
protected static class GrpcChannelFactory.Resolve extends Object implements Runnable
ARunnablethat will actually resolve the gRPC endpoints.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedResolve(GrpcChannelFactory.AddressProviderNameResolver parent, GrpcChannelFactory.GrpcServiceInfo serviceInfo)Create a new resolve runnable.protectedResolve(GrpcChannelFactory.AddressProviderNameResolver parent, GrpcChannelFactory.GrpcServiceInfo serviceInfo, io.grpc.NameResolver.Listener2 listener)Create a new resolve runnable.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<SocketAddress>lookupAddresses()Lookup the gRPC endpoints using the name service.protected List<SocketAddress>resolveAddresses()Resolve the endpoints.voidrun()
-
-
-
Constructor Detail
-
Resolve
protected Resolve(GrpcChannelFactory.AddressProviderNameResolver parent, GrpcChannelFactory.GrpcServiceInfo serviceInfo)
Create a new resolve runnable.- Parameters:
parent- the parentGrpcChannelFactory.AddressProviderNameResolverserviceInfo- the gRPC service info
-
Resolve
protected Resolve(GrpcChannelFactory.AddressProviderNameResolver parent, GrpcChannelFactory.GrpcServiceInfo serviceInfo, io.grpc.NameResolver.Listener2 listener)
Create a new resolve runnable.- Parameters:
parent- the parentGrpcChannelFactory.AddressProviderNameResolverserviceInfo- the gRPC service infolistener- the listener to receive the resolve result
-
-
Method Detail
-
resolveAddresses
protected List<SocketAddress> resolveAddresses()
Resolve the endpoints.- Returns:
- the gRPC endpoint addresses
-
lookupAddresses
protected List<SocketAddress> lookupAddresses()
Lookup the gRPC endpoints using the name service.- Returns:
- the gRPC endpoint addresses
-
-