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 interface
ServiceRegistry.Selector
A 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 void
deregister(ServiceDefinition definition)
Remove the service definition.default Map<String,Object>
getAttributes()
Attributes associated to the service.default int
getOrder()
Gets the order.void
register(ServiceDefinition definition)
Register the service definition.-
Methods inherited from interface org.apache.camel.CamelContextAware
getCamelContext, setCamelContext
-
-
-
-
Method Detail
-
getOrder
default int getOrder()
Description copied from interface:Ordered
Gets 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_VALUE
or 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
-
-