|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JCoFunctionUnit
The interface comprises public methods to work with function unit. Function unit is used as function container in bgRFC calls. It contains one or more functions and may defines queues to ensure execution order.
Note: The implementation for this interface provided by the JCo runtime. Other implementations are not supported.
Method Summary | |
---|---|
void |
addFunction(JCoFunction function)
Adds a function to the unit. |
void |
addFunctions(List<JCoFunction> functions)
Adds the functions to the unit. |
boolean |
addQueueName(String queueName)
Adds a queue name. |
boolean |
addQueueNames(Set<String> queueNames)
Adds the given queue names. |
void |
commit(JCoDestination destination)
Commits the unit. |
List<JCoFunction> |
getFunctions()
Returns an immutable list of function. |
JCoUnitIdentifier |
getIdentifier()
Return the unique identifier for the function unit. |
Set<String> |
getQueueNames()
Returns an immutable copy of the list containing the queue names. |
Method Detail |
---|
JCoUnitIdentifier getIdentifier()
boolean addQueueName(String queueName)
queueName
- name of the queue
JCoRuntimeException
- if the unit is being modified after commit
JCoRuntimeException
- if the queue name is not allowed. Allowed are queue names [A-Z]([A-Z]|[0-9]|_)* only.boolean addQueueNames(Set<String> queueNames)
queueNames
- set of the queue names to add
JCoRuntimeException
- if the unit is being modified after commit
JCoRuntimeException
- if a queue name in the list is not allowed. Allowed are queue names [A-Z]([A-Z]|[0-9]|_)* only.Set<String> getQueueNames()
void addFunction(JCoFunction function)
function
- function to be added to the function unit
JCoRuntimeException
- if the unit is being modified after commitvoid addFunctions(List<JCoFunction> functions)
functions
- list of functions to be added to the function unit
JCoRuntimeException
- if the unit is being modified after commitList<JCoFunction> getFunctions()
void commit(JCoDestination destination) throws JCoException
destination
- to which the unit has to be send
JCoException
- if transmission or processing on the remote side fails
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |