com.spss.psapi.as

Interface ClientEmbeddedASDelegate



  • public interface ClientEmbeddedASDelegate
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface and Description
      static interface  ClientEmbeddedASDelegate.Listener
      Used to receive information from the server while an asynchronousCall is in progress.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      void asynchronousCall(java.lang.String message, ClientEmbeddedASDelegate.Listener listener)
      Passes the message across to the server and calls ServerEmbeddedASDelegate.asynchronousCall.
      void close()
      Causes the ServerEmbeddedASDelegate to be delete and closes the connection to the server.
      java.lang.String synchronousCall(java.lang.String message)
      Passes the message across to the server and calls ServerEmbeddedASDelegate.synchronousCall.
    • Method Detail

      • synchronousCall

        java.lang.String synchronousCall(java.lang.String message)
        Passes the message across to the server and calls ServerEmbeddedASDelegate.synchronousCall. The server side handles the message and then returns a reply which is passed back to the client side and returned. This call is synchronous and doesn't return until the server side call has completed.
        Parameters:
        message - the message sent to the server
        Returns:
        the reply received from the server
      • asynchronousCall

        void asynchronousCall(java.lang.String message,
                            ClientEmbeddedASDelegate.Listener listener)
        Passes the message across to the server and calls ServerEmbeddedASDelegate.asynchronousCall. The server side handles the message and uses the ServerEmbeddedASDelegate.Sender interface to pass responses back to the Listener interface. Once the server side asynchronousCall returns Listener.finished is called. This call is asynchronous and returns immediately.
        Parameters:
        message - the message sent to the server.
        listener - the Listener that is called whenever the server sends a message and when the call completes.
      • close

        void close()
        Causes the ServerEmbeddedASDelegate to be delete and closes the connection to the server.

(C) Copyright IBM Corp. 1994, 2015. All Rights Reserved.