diff options
author | Mark Spruiell <mes@zeroc.com> | 2009-12-08 14:10:38 -0800 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2009-12-08 14:10:38 -0800 |
commit | 55527152af356fda6037f836c978c2b3a2e2f045 (patch) | |
tree | d1872fe6e2d01fa15455a462df090ef94799cb5b /java/demo/Ice/applet/HelloApplet.java | |
parent | vsplugin fxcop issues (diff) | |
download | ice-55527152af356fda6037f836c978c2b3a2e2f045.tar.bz2 ice-55527152af356fda6037f836c978c2b3a2e2f045.tar.xz ice-55527152af356fda6037f836c978c2b3a2e2f045.zip |
- bug 3533: add async version of Connection/Communicator
flushBatchRequests operation
- Slice file cleanup in C# tests
- Updating C++ dependencies
Diffstat (limited to 'java/demo/Ice/applet/HelloApplet.java')
-rw-r--r-- | java/demo/Ice/applet/HelloApplet.java | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/java/demo/Ice/applet/HelloApplet.java b/java/demo/Ice/applet/HelloApplet.java index ea3837f5289..8dac17b6435 100644 --- a/java/demo/Ice/applet/HelloApplet.java +++ b/java/demo/Ice/applet/HelloApplet.java @@ -462,20 +462,13 @@ public class HelloApplet extends JApplet private void flush() { - new Thread(new Runnable() - { - public void run() + _communicator.begin_flushBatchRequests(new Ice.Callback_Communicator_flushBatchRequests() { - try - { - _communicator.flushBatchRequests(); - } - catch(final Ice.LocalException ex) + public void exception(final Ice.LocalException ex) { handleException(ex); } - } - }).start(); + }); _flush.setEnabled(false); _status.setText("Flushed batch requests"); |