Interface horb.orb.AsyncMethodHandler
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface horb.orb.AsyncMethodHandler

public interface AsyncMethodHandler
extends Object
Asynchronous Method Call Handler. Asynchronous method handler object must inherit this interface and must have run() method.
  class hander implements AsyncMethodHandler {
    Server server;
    void setServer(Server server) {
      this.server = server;
    }
    public void run(int tag) {
       value = server.method_Receive(0);
       System.out.println("value for "+tag+" is " value);
    }
  }
Caller:
  //
  server._setHandler(new Handler(), 3);
  server.method_Request(arg);
  // handler will be called when the method completes.

Method Index

 o run(int)
Entry point of asynchronous method call handler.

Methods

 o run
  public abstract void run(int tag)
Entry point of asynchronous method call handler. Once a handler is set by Proxy._setHandler(), this method is called with tag when asynchronous method call completes.
Parameters:
tag - arbitrary integer number
See Also:
_setHander

All Packages  Class Hierarchy  This Package  Previous  Next  Index