From d81701ca8182942b7936f9fd84a019b695e9c890 Mon Sep 17 00:00:00 2001 From: Benoit Foucher Date: Fri, 23 May 2014 11:59:44 +0200 Subject: Added support for invocation timeouts and ACM heartbeats --- java/demo/Ice/nested/NestedI.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'java/demo/Ice/nested/NestedI.java') diff --git a/java/demo/Ice/nested/NestedI.java b/java/demo/Ice/nested/NestedI.java index 4dc087d18c7..3622b7933a6 100644 --- a/java/demo/Ice/nested/NestedI.java +++ b/java/demo/Ice/nested/NestedI.java @@ -22,7 +22,12 @@ class NestedI extends _NestedDisp System.out.println("" + level); if(--level > 0) { - proxy.nestedCall(level, _self); + // + // Ensure the invocation times out if the nesting level is too + // high and there are no more threads in the thread pool to + // dispatch the call. + // + ((NestedPrx)proxy.ice_invocationTimeout(5000)).nestedCall(level, _self); } } -- cgit v1.2.3