public interface JCoRequestUnit
Note: The implementation for this interface provided by the JCo runtime. Other implementations are not supported.
Modifier and Type | Method and Description |
---|---|
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.
|
JCoUnitIdentifier getIdentifier()
boolean addQueueName(String queueName)
queueName
- name of the queueJCoRuntimeException
- if the unit is being modified after commitJCoRuntimeException
- 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 addJCoRuntimeException
- if the unit is being modified after commitJCoRuntimeException
- 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 unitJCoRuntimeException
- if the unit is being modified after commitvoid addRequests(List<JCoRequest> requests)
requests
- list of requests to be added to the unitJCoRuntimeException
- if the unit is being modified after commitList<JCoRequest> getRequests()
void commit(JCoDestination destination) throws JCoException
destination
- to which the unit has to be sendJCoException
- if transmission or processing on the remote side failsCopyright © 2020 SAP. All Rights Reserved.