use of org.apache.ignite.IgniteCompute in project camel by apache.
the class IgniteComputeEndpoint method createIgniteCompute.
public IgniteCompute createIgniteCompute() {
Ignite ignite = ignite();
IgniteCompute compute = clusterGroupExpression == null ? ignite.compute() : ignite.compute(clusterGroupExpression.getClusterGroup(ignite));
if (computeName != null) {
compute = compute.withName(computeName);
}
if (timeoutMillis != null) {
compute = compute.withTimeout(timeoutMillis);
}
return compute;
}
Aggregations