CICS® Transaction Gateway Base API Programming Reference v8.1.0.2

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:


Field Summary
static int async
          Asynchronous EPI calls.
static int sync
          Synchronous EPI calls (the default).
 
Method Summary
 int getSyncType()
          Gets the type of synchronization to be used for this session.
 void handleReply(TerminalInterface terminal)
          Implement this method to handle EPI Events.
 

Field Detail

sync

static final int sync
Synchronous EPI calls (the default).

See Also:
Constant Field Values

async

static final int async
Asynchronous EPI calls.

See Also:
Constant Field Values
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, 2012
Legal