diff options
author | Matthew Newhook <matthew@zeroc.com> | 2014-10-23 16:28:09 -0230 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2014-10-23 16:28:09 -0230 |
commit | f6bb0396e7d8fd12ed50f72ab9fc99436d418576 (patch) | |
tree | ee6ef1cb32f2523839f210eb9ec3b924b97d5998 /java/test/Ice/timeout/TimeoutI.java | |
parent | Add Object.equals, and minor fix to HashMap.equals (diff) | |
download | ice-f6bb0396e7d8fd12ed50f72ab9fc99436d418576.tar.bz2 ice-f6bb0396e7d8fd12ed50f72ab9fc99436d418576.tar.xz ice-f6bb0396e7d8fd12ed50f72ab9fc99436d418576.zip |
More gradle changes.
Moved android stuff to its own package.
Moved java tests to src/main/java/test subdirectory.
Diffstat (limited to 'java/test/Ice/timeout/TimeoutI.java')
-rw-r--r-- | java/test/Ice/timeout/TimeoutI.java | 84 |
1 files changed, 0 insertions, 84 deletions
diff --git a/java/test/Ice/timeout/TimeoutI.java b/java/test/Ice/timeout/TimeoutI.java deleted file mode 100644 index 61b8f7702c2..00000000000 --- a/java/test/Ice/timeout/TimeoutI.java +++ /dev/null @@ -1,84 +0,0 @@ -// ********************************************************************** -// -// 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.timeout; -import test.Ice.timeout.Test._TimeoutDisp; - - -class TimeoutI extends _TimeoutDisp -{ - static class ActivateAdapterThread extends Thread - { - ActivateAdapterThread(Ice.ObjectAdapter adapter, int timeout) - { - _adapter = adapter; - _timeout = timeout; - } - - @Override - public void - run() - { - _adapter.waitForHold(); - try - { - sleep(_timeout); - } - catch(InterruptedException ex) - { - } - _adapter.activate(); - } - - Ice.ObjectAdapter _adapter; - int _timeout; - } - - @Override - public void - op(Ice.Current current) - { - } - - @Override - public void - sendData(byte[] seq, Ice.Current current) - { - } - - @Override - public void - sleep(int to, Ice.Current current) - { - try - { - Thread.currentThread(); - Thread.sleep(to); - } - catch(InterruptedException ex) - { - } - } - - @Override - public void - holdAdapter(int to, Ice.Current current) - { - current.adapter.hold(); - Thread thread = new ActivateAdapterThread(current.adapter, to); - thread.start(); - } - - @Override - public void - shutdown(Ice.Current current) - { - current.adapter.getCommunicator().shutdown(); - } -} |