com.ibm.ctg.epi

Interface Session

  • All Known Implementing Classes:
    EPITerminal


    public interface Session
    An object that implements the Session interface can be passed to the Terminal send method. The Session handleReply method will be called by the Terminal when an EPI event occurs - for example, when screen data is returned by the server. The Session also determines the type of synchronization used for when Terminal.send is called:
    • synchronous - send blocks until the server finishes sending data
    • asynchronous - send returns immediately
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static int async
      Asynchronous EPI calls.
      static int sync
      Synchronous EPI calls (the default).
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      int getSyncType()
      Gets the type of synchronization to be used for this session.
      void handleReply(TerminalInterface terminal)
      Implement this method to handle EPI Events.
    • Method Detail

      • getSyncType

        int getSyncType()
        Gets the type of synchronization to be used for this session. Return either sync or async.
        Returns:
        the synchronization type
      • handleReply

        void handleReply(TerminalInterface terminal)
        Implement this method to handle EPI Events.
        Parameters:
        terminal - the terminal that generated the event
©Copyright IBM Corp. 1994, 2013
Legal