Package org.apache.camel.cloud
Interface ServiceRegistry
-
- All Superinterfaces:
AutoCloseable,CamelContextAware,HasId,IdAware,Ordered,Service
public interface ServiceRegistry extends Service, CamelContextAware, IdAware, Ordered
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceServiceRegistry.SelectorA selector used to pick up a service among a list.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidderegister(ServiceDefinition definition)Remove the service definition.default Map<String,Object>getAttributes()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, setCamelContext
-
Methods inherited from interface org.apache.camel.spi.IdAware
setGeneratedId, setId
-
-
-
-
Method Detail
-
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.
-
register
void register(ServiceDefinition definition)
Register the service definition.- Parameters:
definition- the service definition
-
deregister
void deregister(ServiceDefinition definition)
Remove the service definition.- Parameters:
definition- the service definition
-
-