com.ibm.ctg.epi
Interface Session
- All Known Implementing Classes:
- EPITerminal
- public abstract 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 |
static int |
async
Asynchronous EPI calls |
static int |
sync
Synchronous EPI calls (the default) |
sync
public static final int sync
- Synchronous EPI calls (the default)
async
public static final int async
- Asynchronous EPI calls
getSyncType
public int getSyncType()
- Gets the type of synchronization to be used for this session
- Returns:
- the synchronization type
handleReply
public void handleReply(TerminalInterface terminal)
- Called to deal with EPI Events.
- Parameters:
terminal
- the terminal that generated the event