public interface CapabilityDiscoveryMode
MemberCapabilities
of ServiceInstances.| Modifier and Type | Method and Description |
|---|---|
Optional<MemberCapabilities> |
capabilities(org.springframework.cloud.client.ServiceInstance serviceInstance)
|
void |
updateLocalCapabilities(org.springframework.cloud.client.ServiceInstance localInstance,
int loadFactor,
org.axonframework.commandhandling.distributed.CommandMessageFilter commandFilter)
Update the capabilities of the
localInstance, defined through the given loadFactor and commandFilter. |
void updateLocalCapabilities(org.springframework.cloud.client.ServiceInstance localInstance,
int loadFactor,
org.axonframework.commandhandling.distributed.CommandMessageFilter commandFilter)
localInstance, defined through the given loadFactor and commandFilter.localInstance - the local ServiceInstanceloadFactor - the load factor of the local instance, defining the amount of load this instance can carrycommandFilter - a filter defining the CommandMessages the local
instance is capable of handlingOptional<MemberCapabilities> capabilities(org.springframework.cloud.client.ServiceInstance serviceInstance) throws ServiceInstanceClientException
serviceInstance - the ServiceInstance to discover MemberCapabilities forOptional MemberCapabilities, based on the given serviceInstanceServiceInstanceClientException - whenever the ServiceInstance returns a client specific exceptionCopyright © 2010–2023. All rights reserved.