SupportsBatchCreation<ResourceT>.createAsync 方法

定义

重载

createAsync(Creatable<ResourceT>... creatables)

Puts the requests to create a batch of resources into the queue and allow the HTTP client to execute it when system resources are available.

createAsync(final ServiceCallback<CreatedResources<ResourceT>> callback, List<Creatable<ResourceT>> creatables)

Puts the requests to create a batch of resources into the queue and allow the HTTP client to execute it when system resources are available.

createAsync(List<Creatable<ResourceT>> creatables)

Puts the requests to create a batch of resources into the queue and allow the HTTP client to execute it when system resources are available.

createAsync(ServiceCallback<CreatedResources<ResourceT>> callback, Creatable<ResourceT>... creatables)

Puts the requests to create a batch of resources into the queue and allow the HTTP client to execute it when system resources are available.

createAsync(Creatable<ResourceT>... creatables)

Puts the requests to create a batch of resources into the queue and allow the HTTP client to execute it when system resources are available.

public Observable<Indexable> createAsync(Creatable<ResourceT>... creatables)

参数

creatables
Creatable<ResourceT>...

the creatables in the batch

返回

Observable<Indexable>

an observable for the resources

createAsync(final ServiceCallback<CreatedResources<ResourceT>> callback, List<Creatable<ResourceT>> creatables)

Puts the requests to create a batch of resources into the queue and allow the HTTP client to execute it when system resources are available.

public ServiceFuture<CreatedResources<ResourceT>> createAsync(final ServiceCallback<CreatedResources<ResourceT>> callback, List<Creatable<ResourceT>> creatables)

参数

callback
final ServiceCallback<CreatedResources<ResourceT>>

the callback to handle success and failure

creatables
List<Creatable<ResourceT>>

the list of creatables in the batch

返回

ServiceFuture<CreatedResources<ResourceT>>

a handle to cancel the request

createAsync(List<Creatable<ResourceT>> creatables)

Puts the requests to create a batch of resources into the queue and allow the HTTP client to execute it when system resources are available.

public Observable<Indexable> createAsync(List<Creatable<ResourceT>> creatables)

参数

creatables
List<Creatable<ResourceT>>

the list of creatables in the batch

返回

Observable<Indexable>

an observable for the resources

createAsync(ServiceCallback<CreatedResources<ResourceT>> callback, Creatable<ResourceT>... creatables)

Puts the requests to create a batch of resources into the queue and allow the HTTP client to execute it when system resources are available.

public ServiceFuture<CreatedResources<ResourceT>> createAsync(ServiceCallback<CreatedResources<ResourceT>> callback, Creatable<ResourceT>... creatables)

参数

callback
ServiceCallback<CreatedResources<ResourceT>>

the callback to handle success and failure

creatables
Creatable<ResourceT>...

the creatables in the batch

返回

ServiceFuture<CreatedResources<ResourceT>>

a handle to cancel the request

适用于