Class HttpJsonIDSStub (1.15.0)

public class HttpJsonIDSStub extends IDSStub

REST stub implementation for the IDS service API.

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

Inheritance

java.lang.Object > IDSStub > HttpJsonIDSStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(IDSStubSettings settings)

public static final HttpJsonIDSStub create(IDSStubSettings settings)
Parameter
NameDescription
settingsIDSStubSettings
Returns
TypeDescription
HttpJsonIDSStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

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

Constructors

HttpJsonIDSStub(IDSStubSettings settings, ClientContext clientContext)

protected HttpJsonIDSStub(IDSStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonIDSStub, 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
settingsIDSStubSettings
clientContextClientContext

HttpJsonIDSStub(IDSStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonIDSStub(IDSStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonIDSStub, 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
settingsIDSStubSettings
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

createEndpointCallable()

public UnaryCallable<CreateEndpointRequest,Operation> createEndpointCallable()
Returns
TypeDescription
UnaryCallable<CreateEndpointRequest,Operation>
Overrides

createEndpointOperationCallable()

public OperationCallable<CreateEndpointRequest,Endpoint,OperationMetadata> createEndpointOperationCallable()
Returns
TypeDescription
OperationCallable<CreateEndpointRequest,Endpoint,OperationMetadata>
Overrides

deleteEndpointCallable()

public UnaryCallable<DeleteEndpointRequest,Operation> deleteEndpointCallable()
Returns
TypeDescription
UnaryCallable<DeleteEndpointRequest,Operation>
Overrides

deleteEndpointOperationCallable()

public OperationCallable<DeleteEndpointRequest,Empty,OperationMetadata> deleteEndpointOperationCallable()
Returns
TypeDescription
OperationCallable<DeleteEndpointRequest,Empty,OperationMetadata>
Overrides

getEndpointCallable()

public UnaryCallable<GetEndpointRequest,Endpoint> getEndpointCallable()
Returns
TypeDescription
UnaryCallable<GetEndpointRequest,Endpoint>
Overrides

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
TypeDescription
HttpJsonOperationsStub
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listEndpointsCallable()

public UnaryCallable<ListEndpointsRequest,ListEndpointsResponse> listEndpointsCallable()
Returns
TypeDescription
UnaryCallable<ListEndpointsRequest,ListEndpointsResponse>
Overrides

listEndpointsPagedCallable()

public UnaryCallable<ListEndpointsRequest,IDSClient.ListEndpointsPagedResponse> listEndpointsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListEndpointsRequest,ListEndpointsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()