diff options
author | Benoit Foucher <benoit@zeroc.com> | 2014-05-23 11:59:44 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2014-05-23 11:59:44 +0200 |
commit | d81701ca8182942b7936f9fd84a019b695e9c890 (patch) | |
tree | dc036c9d701fbbe1afad67782bd78572c0f61974 /java/test/Ice/acm/TestI.java | |
parent | Fixed bug ICE-5543: stringToIdentity bug with escaped escapes (diff) | |
download | ice-d81701ca8182942b7936f9fd84a019b695e9c890.tar.bz2 ice-d81701ca8182942b7936f9fd84a019b695e9c890.tar.xz ice-d81701ca8182942b7936f9fd84a019b695e9c890.zip |
Added support for invocation timeouts and ACM heartbeats
Diffstat (limited to 'java/test/Ice/acm/TestI.java')
-rw-r--r-- | java/test/Ice/acm/TestI.java | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/java/test/Ice/acm/TestI.java b/java/test/Ice/acm/TestI.java new file mode 100644 index 00000000000..be2e3a4a58e --- /dev/null +++ b/java/test/Ice/acm/TestI.java @@ -0,0 +1,51 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved. +// +// This copy of Ice is licensed to you under the terms described in the +// ICE_LICENSE file included in this distribution. +// +// ********************************************************************** + +package test.Ice.acm; +import test.Ice.acm.Test._TestIntfDisp; + +public class TestI extends _TestIntfDisp +{ + public void sleep(int delay, Ice.Current current) + { + synchronized(this) + { + try + { + wait(delay * 1000); + } + catch(java.lang.InterruptedException ex) + { + } + } + } + + public void sleepAndHold(int delay, Ice.Current current) + { + synchronized(this) + { + try + { + current.adapter.hold(); + wait(delay * 1000); + } + catch(java.lang.InterruptedException ex) + { + } + } + } + + public void interruptSleep(Ice.Current current) + { + synchronized(this) + { + notifyAll(); + } + } +}; |