|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JCoRequestUnit
The interface comprises public methods to work with request unit. Request unit is used as function container in bgRFC calls, where each function represented by JCoRequest. The request unit 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 | |
---|---|
boolean |
addQueueName(String queueName)
Adds a queue name. |
boolean |
addQueueNames(Set<String> queueNames)
Adds the given queue names. |
void |
addRequest(JCoRequest request)
Adds a request to the unit. |
void |
addRequests(List<JCoRequest> requests)
Adds the request to the unit. |
void |
commit(JCoDestination destination)
Commits the unit. |
JCoUnitIdentifier |
getIdentifier()
Return the unique identifier for the function unit. |
Set<String> |
getQueueNames()
Returns an immutable copy of the list containing the queue names. |
List<JCoRequest> |
getRequests()
Returns an immutable list of function. |
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 addRequest(JCoRequest request)
request
- request to be added to the unit
JCoRuntimeException
- if the unit is being modified after commitvoid addRequests(List<JCoRequest> requests)
requests
- list of requests to be added to the unit
JCoRuntimeException
- if the unit is being modified after commitList<JCoRequest> getRequests()
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 |