Package org.apache.camel.cloud
Interface ServiceRegistry
- All Superinterfaces:
AutoCloseable,CamelContextAware,HasId,IdAware,Ordered,Service
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA selector used to pick up a service among a list. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoidderegister(ServiceDefinition definition) Remove the service definition.Attributes associated to the service.default intgetOrder()Gets the order.voidregister(ServiceDefinition definition) Register the service definition.Methods inherited from interface org.apache.camel.CamelContextAware
getCamelContext, setCamelContextMethods inherited from interface org.apache.camel.spi.IdAware
setGeneratedId, setId
-
Method Details
-
getOrder
default int getOrder()Description copied from interface:OrderedGets the order. Use low numbers for higher priority. Normally the sorting will start from 0 and move upwards. So if you want to be last then useInteger.MAX_VALUEor egOrdered.LOWEST. -
getAttributes
Attributes associated to the service. -
register
Register the service definition.- Parameters:
definition- the service definition
-
deregister
Remove the service definition.- Parameters:
definition- the service definition
-