public class Callback extends Object
| Constructor and Description |
|---|
Callback(int argCount)
Creates a new callback instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addParm(Class<?> c)
You must call this function once for each type of parameter in the argument vector of the callback method.
|
void |
addParm(String name)
You must call this function once for each type of parameter in the argument vector of the callback method.
|
int |
getArgsCount() |
String |
getMethodName() |
void |
initialize(Object cbobj,
String cbfun)
Initializes the callback.
|
void |
invoke()
This function should be called by the entity (or entities) that are
performing a unit of work.
|
void |
setArg(int argNum,
Object o)
When you're ready to invoke the callback, call this function to set
each of the arguments that you're going to send.
|
public Callback(int argCount)
argCount - The number of arguments to be sent to the callback
method.public String getMethodName()
public void addParm(String name) throws ResultException
name - The fully qualified name of the class e.g. com.dmc.common.rrf.RrfResponseResultExceptionpublic void addParm(Class<?> c)
c - The Class of the next argument.public void initialize(Object cbobj, String cbfun) throws ResultException
cbobj - The object to be called.cbfun - The callback function.ResultExceptionpublic void setArg(int argNum,
Object o)
public int getArgsCount()
public void invoke()
throws ResultException
ResultExceptionCopyright © 2023. All rights reserved.