Commit 487ede89 authored by bseeger's avatar bseeger
Browse files

Adds seda timeout

parent b3d100cf
...@@ -5,6 +5,8 @@ rest.prefix=/pcdm ...@@ -5,6 +5,8 @@ rest.prefix=/pcdm
# Concurrency level (this MUST be > 1) # Concurrency level (this MUST be > 1)
pcdm.concurrency=10 pcdm.concurrency=10
# seda timeout (milliseconds) (0 = disabled)
pcdm.timeout=0
# Repository Base URL (it MUST start with http:// or https://) # Repository Base URL (it MUST start with http:// or https://)
fcrepo.baseUrl=http://localhost:8080/fcrepo/rest fcrepo.baseUrl=http://localhost:8080/fcrepo/rest
......
...@@ -76,7 +76,7 @@ public class PcdmRouter extends RouteBuilder { ...@@ -76,7 +76,7 @@ public class PcdmRouter extends RouteBuilder {
}) })
.to("direct:serialize"); .to("direct:serialize");
from("seda:recurse?concurrentConsumers={{pcdm.concurrency}}") from("seda:recurse?concurrentConsumers={{pcdm.concurrency}}&timeout={{pcdm.timeout}}")
.routeId("PcdmBuildRecursive") .routeId("PcdmBuildRecursive")
.setHeader(FCREPO_URI, body()) .setHeader(FCREPO_URI, body())
.to("direct:getResource") .to("direct:getResource")
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
<cm:property name="rest.prefix" value="/pcdm"/> <cm:property name="rest.prefix" value="/pcdm"/>
<cm:property name="rest.host" value="localhost"/> <cm:property name="rest.host" value="localhost"/>
<cm:property name="pcdm.concurrency" value="10"/> <cm:property name="pcdm.concurrency" value="10"/>
<cm:property name="pcdm.timeout" value="0"/>
<cm:property name="fcrepo.baseUrl" value="http://localhost:8080/fcrepo/rest"/> <cm:property name="fcrepo.baseUrl" value="http://localhost:8080/fcrepo/rest"/>
<cm:property name="fcrepo.authUsername" value=""/> <cm:property name="fcrepo.authUsername" value=""/>
<cm:property name="fcrepo.authPassword" value=""/> <cm:property name="fcrepo.authPassword" value=""/>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment