public class
ApiOperations
extends Object
A factory for creating ApiOperation
instances.
This class consists exclusively of static methods that operate on or return specific
ApiOperation
instances used in template classes (such as Repository
).
Public Method Summary
static ApiOperation | |
static ApiOperation |
deleteItem(String id, byte[] version, IndexingService.RequestMode requestMode)
Creates a
DeleteItem instance with a custom version. |
static ApiOperation |
deleteItem(String id)
Creates a
DeleteItem instance. |
static ApiOperation |
deleteQueueItems(String queueName)
Creates a
DeleteQueueItems instance. |
Inherited Method Summary
Public Methods
public static ApiOperation batch (Iterator<ApiOperation> operations)
Creates a BatchApiOperation
instance.
Use this method to batch multiple ApiOperation
instances in a single operation.
Parameters
operations | to batch |
---|
Returns
public static ApiOperation deleteItem (String id, byte[] version, IndexingService.RequestMode requestMode)
Creates a DeleteItem
instance with a custom version.
Parameters
id | to delete |
---|---|
version | item version for delete |
requestMode | mode for request |
Returns
public static ApiOperation deleteItem (String id)
public static ApiOperation deleteQueueItems (String queueName)
Creates a DeleteQueueItems
instance.
Parameters
queueName | items with this queue name will be deleted |
---|