ICE 3.4.2
[php5-ice-freebsdport.git] / java / demo / Ice / hello / HelloI.java
blobb438d5a850d8933db5c07f5cdb2bcb95eecc47c7
1 // **********************************************************************
2 //
3 // Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved.
4 //
5 // This copy of Ice is licensed to you under the terms described in the
6 // ICE_LICENSE file included in this distribution.
7 //
8 // **********************************************************************
10 import Demo.*;
12 public class HelloI extends _HelloDisp
14 public void
15 sayHello(int delay, Ice.Current current)
17 if(delay > 0)
19 try
21 Thread.currentThread().sleep(delay);
23 catch(InterruptedException ex1)
27 System.out.println("Hello World!");
30 public void
31 shutdown(Ice.Current current)
33 System.out.println("Shutting down...");
34 current.adapter.getCommunicator().shutdown();