summaryrefslogtreecommitdiff
path: root/java/test/Ice/timeout/TimeoutI.java
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2007-02-01 17:09:49 +0000
committerBernard Normier <bernard@zeroc.com>2007-02-01 17:09:49 +0000
commitabada90e3f84dc703b8ddc9efcbed8a946fadead (patch)
tree2c6f9dccd510ea97cb927a7bd635422efaae547a /java/test/Ice/timeout/TimeoutI.java
parentremoving trace message (diff)
downloadice-abada90e3f84dc703b8ddc9efcbed8a946fadead.tar.bz2
ice-abada90e3f84dc703b8ddc9efcbed8a946fadead.tar.xz
ice-abada90e3f84dc703b8ddc9efcbed8a946fadead.zip
Expanded tabs into spaces
Diffstat (limited to 'java/test/Ice/timeout/TimeoutI.java')
-rw-r--r--java/test/Ice/timeout/TimeoutI.java62
1 files changed, 31 insertions, 31 deletions
diff --git a/java/test/Ice/timeout/TimeoutI.java b/java/test/Ice/timeout/TimeoutI.java
index 73d26461fde..0221ce830b1 100644
--- a/java/test/Ice/timeout/TimeoutI.java
+++ b/java/test/Ice/timeout/TimeoutI.java
@@ -13,28 +13,28 @@ class TimeoutI extends _TimeoutDisp
{
static class ActivateAdapterThread extends Thread
{
- ActivateAdapterThread(Ice.ObjectAdapter adapter, int timeout)
- {
- _adapter = adapter;
- _timeout = timeout;
- }
+ ActivateAdapterThread(Ice.ObjectAdapter adapter, int timeout)
+ {
+ _adapter = adapter;
+ _timeout = timeout;
+ }
- public void
- run()
- {
- _adapter.waitForHold();
- try
- {
- sleep(_timeout);
- }
- catch(InterruptedException ex)
- {
- }
- _adapter.activate();
- }
+ public void
+ run()
+ {
+ _adapter.waitForHold();
+ try
+ {
+ sleep(_timeout);
+ }
+ catch(InterruptedException ex)
+ {
+ }
+ _adapter.activate();
+ }
- Ice.ObjectAdapter _adapter;
- int _timeout;
+ Ice.ObjectAdapter _adapter;
+ int _timeout;
}
public void
@@ -50,26 +50,26 @@ class TimeoutI extends _TimeoutDisp
public void
sleep(int to, Ice.Current current)
{
- try
- {
- Thread.currentThread().sleep(to);
- }
- catch(InterruptedException ex)
- {
- }
+ try
+ {
+ Thread.currentThread().sleep(to);
+ }
+ catch(InterruptedException ex)
+ {
+ }
}
public void
holdAdapter(int to, Ice.Current current)
{
- current.adapter.hold();
- Thread thread = new ActivateAdapterThread(current.adapter, to);
- thread.start();
+ current.adapter.hold();
+ Thread thread = new ActivateAdapterThread(current.adapter, to);
+ thread.start();
}
public void
shutdown(Ice.Current current)
{
- current.adapter.getCommunicator().shutdown();
+ current.adapter.getCommunicator().shutdown();
}
}