org.apache.camel.Service Java Examples

The following examples show how to use org.apache.camel.Service. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: NoShutdownStrategy.java    From camel-quarkus with Apache License 2.0 4 votes vote down vote up
@Override
public boolean forceShutdown(Service service) {
    return false;
}
 
Example #2
Source File: CamelLifecycleEventBridge.java    From camel-quarkus with Apache License 2.0 4 votes vote down vote up
@Override
public void onServiceAdd(CamelContext context, Service service, org.apache.camel.Route route) {
    fireEvent(new ServiceAddEvent(context, service, route));
}
 
Example #3
Source File: CamelLifecycleEventBridge.java    From camel-quarkus with Apache License 2.0 4 votes vote down vote up
@Override
public void onServiceRemove(CamelContext context, Service service, org.apache.camel.Route route) {
    fireEvent(new ServiceRemoveEvent(context, service, route));
}
 
Example #4
Source File: ServiceRemoveEvent.java    From camel-quarkus with Apache License 2.0 4 votes vote down vote up
public ServiceRemoveEvent(CamelContext camelContext, Service service, Route route) {
    super(camelContext, service, route);
}
 
Example #5
Source File: ServiceEvent.java    From camel-quarkus with Apache License 2.0 4 votes vote down vote up
public ServiceEvent(CamelContext camelContext, Service service, Route route) {
    this.camelContext = camelContext;
    this.service = service;
    this.route = route;
}
 
Example #6
Source File: ServiceEvent.java    From camel-quarkus with Apache License 2.0 4 votes vote down vote up
public Service getService() {
    return this.service;
}
 
Example #7
Source File: ServiceEvent.java    From camel-quarkus with Apache License 2.0 4 votes vote down vote up
public <T extends Service> T getService(Class<T> type) {
    return type.cast(this.service);
}
 
Example #8
Source File: ServiceAddEvent.java    From camel-quarkus with Apache License 2.0 4 votes vote down vote up
public ServiceAddEvent(CamelContext camelContext, Service service, Route route) {
    super(camelContext, service, route);
}