public final class CamelSpark extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
spark(spark.Service sparkInstance,
String verb,
String path,
String accept,
spark.Route route)
Adds a Spark REST verb that routes to the given spark route
|
static void |
threadPool(spark.Service sparkInstance,
int minThreads,
int maxThreads,
int timeOutMillis)
Configures the thread pool
|
public static void threadPool(spark.Service sparkInstance,
int minThreads,
int maxThreads,
int timeOutMillis)
public static void spark(spark.Service sparkInstance,
String verb,
String path,
String accept,
spark.Route route)
sparkInstance - the SPARK instanceverb - the HTTP verbpath - the context pathaccept - the accept headerroute - the spark route (we call a Camel route from here)Apache Camel