Class DynamicResolverMixin.DeferredEndpointServiceRegistryImpl
java.lang.Object
com.illumon.iris.db.v2.routing.endpoint.DynamicResolverMixin.DeferredEndpointServiceRegistryImpl
- All Implemented Interfaces:
com.fishlib.base.log.LogOutputAppendable
,DataRoutingService.DeferredEndpoint
- Direct Known Subclasses:
DynamicResolverMixin.DeferredDISEndpointServiceRegistryImpl
,DynamicResolverMixin.DeferredLASEndpointServiceRegistryImpl
- Enclosing interface:
- DynamicResolverMixin
public static class DynamicResolverMixin.DeferredEndpointServiceRegistryImpl extends Object implements DataRoutingService.DeferredEndpoint
DeferredEndpoint implementation that uses
ServiceRegistryService
to resolve endpoints-
Method Summary
Modifier and Type Method Description String
asString()
Returns a string representation of the endpoint.DataRoutingService.Endpoint
getEndpoint()
Returns a realized endpointString
getName()
Returns a service name hosting the endpoint.boolean
hasEndpoint()
Returns true if this instance has a realized endpoint.protected SimpleEndpoint
makeSimpleEndpoint(String name, String host, int port)
Create a simple endpoint of the appropriate type.String
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.illumon.iris.db.v2.routing.DataRoutingService.DeferredEndpoint
append
-
Method Details
-
getName
Description copied from interface:DataRoutingService.DeferredEndpoint
Returns a service name hosting the endpoint.- Specified by:
getName
in interfaceDataRoutingService.DeferredEndpoint
-
getEndpoint
@NotNull public DataRoutingService.Endpoint getEndpoint() throws DataRoutingService.NotReadyExceptionDescription copied from interface:DataRoutingService.DeferredEndpoint
Returns a realized endpoint- Specified by:
getEndpoint
in interfaceDataRoutingService.DeferredEndpoint
- Throws:
DataRoutingService.NotReadyException
- if not realized
-
makeSimpleEndpoint
@NotNull protected SimpleEndpoint makeSimpleEndpoint(@NotNull String name, @NotNull String host, int port)Create a simple endpoint of the appropriate type. Subclasses can override the return type.- Parameters:
name
- the name of the endpointhost
- the host part of the endpointport
- the port part of the endpoint- Returns:
- a new static endpoint
-
hasEndpoint
public boolean hasEndpoint()Description copied from interface:DataRoutingService.DeferredEndpoint
Returns true if this instance has a realized endpoint.- Specified by:
hasEndpoint
in interfaceDataRoutingService.DeferredEndpoint
-
asString
Description copied from interface:DataRoutingService.DeferredEndpoint
Returns a string representation of the endpoint.- Specified by:
asString
in interfaceDataRoutingService.DeferredEndpoint
-
toString
-