|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.platform.symphony.soam.SessionCallback
public abstract class SessionCallback
Should be extended by the application developer to define custom handling for
the asynchronous receipt of task responses.
The SessionCallback
should be supplied as an argument when
opening or creating a Session
. The callback will be invoked whenever a task
belonging to the given Session
has completed or returned with error.
The SessionCallback
will provide the most efficient use of the
middleware (as opposed to synchronous task retrieval using
Session.fetchTaskOutput
).
Connection.createSession(SessionCreationAttributes)
,
Connection.openSession(SessionOpenAttributes)
Constructor Summary | |
---|---|
SessionCallback()
Default Constructor |
Method Summary | |
---|---|
abstract void |
onException(SoamException exception)
This method is invoked when an exception occurs within the scope of the given Session . |
abstract void |
onResponse(TaskOutputHandle task)
This method is invoked when a task response is available. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SessionCallback()
Method Detail |
---|
public abstract void onResponse(TaskOutputHandle task) throws SoamException
task
- The task a response to be handled
SoamException
public abstract void onException(SoamException exception) throws SoamException
Session
.
It must be implemented by the application developer.
exception
- The exception that had occurred
SoamException
|
Version 5.0 Date Modified: -DREL_DATE=Nov 11 2009 Platform Computing. Accelerating Intelligence(TM). Copyright (C) 2001-2009 Platform Computing Corporation. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |