Class HttpJsonAssetServiceStub (3.7.1)

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

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listAssetsCallable()

public UnaryCallable<ListAssetsRequest,ListAssetsResponse> listAssetsCallable()
Returns
TypeDescription
UnaryCallable<ListAssetsRequest,ListAssetsResponse>
Overrides

listAssetsPagedCallable()

public UnaryCallable<ListAssetsRequest,AssetServiceClient.ListAssetsPagedResponse> listAssetsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListAssetsRequest,ListAssetsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()