public class BatchImpl extends ConnectorAPIOperationRunner implements BatchApiOp
NO_TIMEOUT| Constructor and Description |
|---|
BatchImpl(ConnectorOperationalContext context,
Connector connector)
Construct a batch operation.
|
BatchImpl(ConnectorOperationalContext context,
Connector connector,
LocalConnectorFacadeImpl.ReferenceCounter referenceCounter)
Construct a batch operation.
|
| Modifier and Type | Method and Description |
|---|---|
Subscription |
executeBatch(List<BatchTask> tasks,
Observer<BatchResult> observer,
OperationOptions options) |
Subscription |
queryBatch(BatchToken batchToken,
Observer<BatchResult> observer,
OperationOptions options) |
getConnector, getNormalizer, getOperationalContextpublic BatchImpl(ConnectorOperationalContext context, Connector connector)
context - the context for the connector operation.connector - the connector on which to execute the operation.public BatchImpl(ConnectorOperationalContext context, Connector connector, LocalConnectorFacadeImpl.ReferenceCounter referenceCounter)
context - the context for the connector operation.connector - the connector on which to execute the operation.public Subscription executeBatch(List<BatchTask> tasks, Observer<BatchResult> observer, OperationOptions options)
executeBatch in interface BatchApiOptasks - the list of batch tasks to execute.observer - an observer/handler for the ongoing results of the batch.options - options for the operation.public Subscription queryBatch(BatchToken batchToken, Observer<BatchResult> observer, OperationOptions options)
queryBatch in interface BatchApiOpbatchToken - 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.Copyright © 2018–2025. All rights reserved.