Class: MultiCallOperation

MultiCall~MultiCallOperation(request, sharedData) → {void}

Handles creation of an Operation with Iterations.

Constructor

new MultiCallOperation(request, sharedData) → {void}

MultiCallOperation Constructor.

MultiCallOperation Constructor.

Parameters:
Name Type Default Description
request Array.<Request> | Request | ? null
sharedData Object
Source:
See:
  • MultiCallRequest
Returns:
Type
void

Methods

addRequest(request) → {MultiCallOperation}

Add a request iteration.

Add a request iteration.

Parameters:
Name Type Description
request Request
Source:
Returns:
Type
MultiCallOperation

addRequests(requests) → {MultiCallOperation}

Add an array of requests iterations.

Add an array of requests iterations.

Parameters:
Name Type Description
requests Array
Source:
Throws:
Error
Returns:
Type
MultiCallOperation

addSharedData(key, value) → {MultiCallOperation}

Add a shared data value for key.

Add a shared data value for key.

Parameters:
Name Type Description
key string
value string | object
Source:
Returns:
Type
MultiCallOperation

getRequests() → {Array}

Get the request iterations.

Get the request iterations.

Source:
Returns:
Type
Array

getSharedData() → {Object}

Get the shared data between the iterations.

Get the shared data between the iterations.

Source:
Returns:
Type
Object

setRequests(requests) → {MultiCallOperation}

Set and override the request iterations.

Set and override the request iterations.

Parameters:
Name Type Description
requests Array
Source:
Throws:
Error
Returns:
Type
MultiCallOperation

setSharedData(values) → {MultiCallOperation}

Set the shared data object.

Set the shared data object.

Parameters:
Name Type Description
values Object
Source:
Returns:
Type
MultiCallOperation

toObject() → {Object}

Reduce the operation to an object.

Reduce the operation to an object.

Source:
Returns:
Type
Object