Creatable<T> Interface

Type Parameters

T

the fluent type of the resource to be created

public interface Creatable extends Indexable,HasName

The final stage of the resource definition, at which it can be created using create().

Method Summary

Modifier and Type Method and Description
T create()

Execute the create request.

Observable<Indexable> createAsync()

Puts the request into the queue and allow the HTTP client to execute it when system resources are available.

ServiceFuture<T> createAsync(final ServiceCallback<T> callback)

Puts the request into the queue and allow the HTTP client to execute it when system resources are available.

Inherited Members

Method Details

create

public T create()

Execute the create request.

Returns:

the create resource

createAsync

public Observable createAsync()

Puts the request into the queue and allow the HTTP client to execute it when system resources are available.

Returns:

an observable of the request

createAsync

public ServiceFuture createAsync(final ServiceCallback callback)

Puts the request into the queue and allow the HTTP client to execute it when system resources are available.

Parameters:

callback - the callback to handle success and failure

Returns:

a handle to cancel the request

Applies to