Class HttpJsonAssetServiceStub (3.4.0)

public class HttpJsonAssetServiceStub extends AssetServiceStub

REST stub implementation for the AssetService service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > AssetServiceStub > HttpJsonAssetServiceStub

Static Methods

create(ClientContext clientContext)

public static final HttpJsonAssetServiceStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
HttpJsonAssetServiceStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonAssetServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonAssetServiceStub
Exceptions
TypeDescription
IOException

create(AssetServiceStubSettings settings)

public static final HttpJsonAssetServiceStub create(AssetServiceStubSettings settings)
Parameter
NameDescription
settingsAssetServiceStubSettings
Returns
TypeDescription
HttpJsonAssetServiceStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
List<ApiMethodDescriptor>

Constructors

HttpJsonAssetServiceStub(AssetServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonAssetServiceStub(AssetServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonAssetServiceStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
NameDescription
settingsAssetServiceStubSettings
clientContextClientContext

HttpJsonAssetServiceStub(AssetServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonAssetServiceStub(AssetServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonAssetServiceStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
NameDescription
settingsAssetServiceStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

createFeedCallable()

public UnaryCallable<CreateFeedRequest,Feed> createFeedCallable()
Returns
TypeDescription
UnaryCallable<CreateFeedRequest,Feed>
Overrides

deleteFeedCallable()

public UnaryCallable<DeleteFeedRequest,Empty> deleteFeedCallable()
Returns
TypeDescription
UnaryCallable<DeleteFeedRequest,Empty>
Overrides

getFeedCallable()

public UnaryCallable<GetFeedRequest,Feed> getFeedCallable()
Returns
TypeDescription
UnaryCallable<GetFeedRequest,Feed>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listFeedsCallable()

public UnaryCallable<ListFeedsRequest,ListFeedsResponse> listFeedsCallable()
Returns
TypeDescription
UnaryCallable<ListFeedsRequest,ListFeedsResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateFeedCallable()

public UnaryCallable<UpdateFeedRequest,Feed> updateFeedCallable()
Returns
TypeDescription
UnaryCallable<UpdateFeedRequest,Feed>
Overrides