Interface BatchApiOp
-
- All Superinterfaces:
APIOperation
- All Known Subinterfaces:
ConnectorFacade
public interface BatchApiOp extends APIOperation
Execute a series ofAPIOperation
. If a resource does not support batch operations in any form and it cannot be coerced into doing so then the connector will not implement theBatchOp
interface. Batch will still be supported via the framework but the operations will be executed iteratively through the connector. With this every connector appears to support batch even if it's not the most efficient implementation possible.- Since:
- 1.5
-
-
Field Summary
-
Fields inherited from interface org.identityconnectors.framework.api.operations.APIOperation
NO_TIMEOUT
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Subscription
executeBatch(java.util.List<BatchTask> tasks, Observer<BatchResult> observer, OperationOptions options)
Execute a series ofBatchTask
.Subscription
queryBatch(BatchToken token, Observer<BatchResult> observer, OperationOptions options)
Query an ongoing batch execution for new results.
-
-
-
Method Detail
-
executeBatch
Subscription executeBatch(java.util.List<BatchTask> tasks, Observer<BatchResult> observer, OperationOptions options)
Execute a series ofBatchTask
.- Parameters:
tasks
- the list of batch tasks to execute.observer
- an observer/handler for the ongoing results of the batch.options
- options for the operation.- Returns:
- a subscription object for managing the lifecycle of the observer.
-
queryBatch
Subscription queryBatch(BatchToken token, Observer<BatchResult> observer, OperationOptions options)
Query an ongoing batch execution for new results.- Parameters:
token
- a token for a previously started batch, the ongoing results of which should invoke the observer.observer
- an observer/handler for the ongoing results of the batch.options
- options for the operation.- Returns:
- a subscription object for managing the lifecycle of the observer.
-
-