BaseVoidActionCollectionRequest<T,T2,T3> Class

Type Parameters

T

the type of the object in the collection

T2

the response collection type

T3

the collection page type

public abstract class BaseVoidActionCollectionRequest<T,T2,T3>
extends BaseCollectionRequest<T,T2,T3>

A request against a collection bound action

Constructor Summary

Constructor Description
BaseVoidActionCollectionRequest(String requestUrl, IBaseClient<?> client, List<? extends Option> options, Class<T2> responseCollectionClass, Class<T3> collectionPageClass, Class<? extends BaseCollectionRequestBuilder<T,? extends BaseRequestBuilder<T>,T2,T3,? extends BaseCollectionRequest<T,T2,T3>>> collectionRequestBuilderClass)

Create the collection request

Method Summary

Modifier and Type Method and Description
java.lang.Void post()

Invokes the method

java.util.concurrent.CompletableFuture<java.lang.Void> postAsync()

Invokes the method and calls the callback with the resulting collection of objects

Methods inherited from BaseCollectionRequest

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

BaseVoidActionCollectionRequest

public BaseVoidActionCollectionRequest(String requestUrl, IBaseClient client, List options, Class responseCollectionClass, Class collectionPageClass, Class,T2,T3,? extends BaseCollectionRequest>> collectionRequestBuilderClass)

Create the collection request

Parameters:

requestUrl - the URL to make the request against
client - the client which can issue the request
options - the options for this request
responseCollectionClass - the class for the response collection
collectionPageClass - the class for the collection page
collectionRequestBuilderClass - the class for the collection request builder

Method Details

post

public Void post()

Invokes the method

Throws:

postAsync

public CompletableFuture postAsync()

Invokes the method and calls the callback with the resulting collection of objects

Returns:

a future with the result

Applies to