public interface Session
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:
Modifier and Type | Field and Description |
---|---|
static int |
async
Asynchronous EPI calls.
|
static int |
sync
Synchronous EPI calls (the default).
|
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.
|
static final int sync
static final int async
int getSyncType()
void handleReply(TerminalInterface terminal)
terminal
- the terminal that generated the event