Class HttpJsonDatastreamStub (1.30.0)

public class HttpJsonDatastreamStub extends DatastreamStub

REST stub implementation for the Datastream service API.

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

Inheritance

java.lang.Object > DatastreamStub > HttpJsonDatastreamStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(DatastreamStubSettings settings)

public static final HttpJsonDatastreamStub create(DatastreamStubSettings settings)
Parameter
NameDescription
settingsDatastreamStubSettings
Returns
TypeDescription
HttpJsonDatastreamStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

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

Constructors

HttpJsonDatastreamStub(DatastreamStubSettings settings, ClientContext clientContext)

protected HttpJsonDatastreamStub(DatastreamStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonDatastreamStub, 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
settingsDatastreamStubSettings
clientContextClientContext

HttpJsonDatastreamStub(DatastreamStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonDatastreamStub(DatastreamStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonDatastreamStub, 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
settingsDatastreamStubSettings
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

createConnectionProfileCallable()

public UnaryCallable<CreateConnectionProfileRequest,Operation> createConnectionProfileCallable()
Overrides

createConnectionProfileOperationCallable()

public OperationCallable<CreateConnectionProfileRequest,ConnectionProfile,OperationMetadata> createConnectionProfileOperationCallable()
Overrides

createPrivateConnectionCallable()

public UnaryCallable<CreatePrivateConnectionRequest,Operation> createPrivateConnectionCallable()
Overrides

createPrivateConnectionOperationCallable()

public OperationCallable<CreatePrivateConnectionRequest,PrivateConnection,OperationMetadata> createPrivateConnectionOperationCallable()
Overrides

createRouteCallable()

public UnaryCallable<CreateRouteRequest,Operation> createRouteCallable()
Overrides

createRouteOperationCallable()

public OperationCallable<CreateRouteRequest,Route,OperationMetadata> createRouteOperationCallable()
Overrides

createStreamCallable()

public UnaryCallable<CreateStreamRequest,Operation> createStreamCallable()
Overrides

createStreamOperationCallable()

public OperationCallable<CreateStreamRequest,Stream,OperationMetadata> createStreamOperationCallable()
Overrides

deleteConnectionProfileCallable()

public UnaryCallable<DeleteConnectionProfileRequest,Operation> deleteConnectionProfileCallable()
Overrides

deleteConnectionProfileOperationCallable()

public OperationCallable<DeleteConnectionProfileRequest,Empty,OperationMetadata> deleteConnectionProfileOperationCallable()
Overrides

deletePrivateConnectionCallable()

public UnaryCallable<DeletePrivateConnectionRequest,Operation> deletePrivateConnectionCallable()
Overrides

deletePrivateConnectionOperationCallable()

public OperationCallable<DeletePrivateConnectionRequest,Empty,OperationMetadata> deletePrivateConnectionOperationCallable()
Overrides

deleteRouteCallable()

public UnaryCallable<DeleteRouteRequest,Operation> deleteRouteCallable()
Overrides

deleteRouteOperationCallable()

public OperationCallable<DeleteRouteRequest,Empty,OperationMetadata> deleteRouteOperationCallable()
Overrides

deleteStreamCallable()

public UnaryCallable<DeleteStreamRequest,Operation> deleteStreamCallable()
Overrides

deleteStreamOperationCallable()

public OperationCallable<DeleteStreamRequest,Empty,OperationMetadata> deleteStreamOperationCallable()
Overrides

discoverConnectionProfileCallable()

public UnaryCallable<DiscoverConnectionProfileRequest,DiscoverConnectionProfileResponse> discoverConnectionProfileCallable()
Overrides

fetchErrorsCallable()

public UnaryCallable<FetchErrorsRequest,Operation> fetchErrorsCallable()
Overrides

fetchErrorsOperationCallable()

public OperationCallable<FetchErrorsRequest,FetchErrorsResponse,OperationMetadata> fetchErrorsOperationCallable()
Overrides

fetchStaticIpsCallable()

public UnaryCallable<FetchStaticIpsRequest,FetchStaticIpsResponse> fetchStaticIpsCallable()
Overrides

fetchStaticIpsPagedCallable()

public UnaryCallable<FetchStaticIpsRequest,DatastreamClient.FetchStaticIpsPagedResponse> fetchStaticIpsPagedCallable()
Overrides

getConnectionProfileCallable()

public UnaryCallable<GetConnectionProfileRequest,ConnectionProfile> getConnectionProfileCallable()
Overrides

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
TypeDescription
HttpJsonOperationsStub
Overrides

getPrivateConnectionCallable()

public UnaryCallable<GetPrivateConnectionRequest,PrivateConnection> getPrivateConnectionCallable()
Overrides

getRouteCallable()

public UnaryCallable<GetRouteRequest,Route> getRouteCallable()
Returns
TypeDescription
UnaryCallable<GetRouteRequest,Route>
Overrides

getStreamCallable()

public UnaryCallable<GetStreamRequest,Stream> getStreamCallable()
Returns
TypeDescription
UnaryCallable<GetStreamRequest,Stream>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listConnectionProfilesCallable()

public UnaryCallable<ListConnectionProfilesRequest,ListConnectionProfilesResponse> listConnectionProfilesCallable()
Overrides

listConnectionProfilesPagedCallable()

public UnaryCallable<ListConnectionProfilesRequest,DatastreamClient.ListConnectionProfilesPagedResponse> listConnectionProfilesPagedCallable()
Overrides

listPrivateConnectionsCallable()

public UnaryCallable<ListPrivateConnectionsRequest,ListPrivateConnectionsResponse> listPrivateConnectionsCallable()
Overrides

listPrivateConnectionsPagedCallable()

public UnaryCallable<ListPrivateConnectionsRequest,DatastreamClient.ListPrivateConnectionsPagedResponse> listPrivateConnectionsPagedCallable()
Overrides

listRoutesCallable()

public UnaryCallable<ListRoutesRequest,ListRoutesResponse> listRoutesCallable()
Overrides

listRoutesPagedCallable()

public UnaryCallable<ListRoutesRequest,DatastreamClient.ListRoutesPagedResponse> listRoutesPagedCallable()
Overrides

listStreamsCallable()

public UnaryCallable<ListStreamsRequest,ListStreamsResponse> listStreamsCallable()
Overrides

listStreamsPagedCallable()

public UnaryCallable<ListStreamsRequest,DatastreamClient.ListStreamsPagedResponse> listStreamsPagedCallable()
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateConnectionProfileCallable()

public UnaryCallable<UpdateConnectionProfileRequest,Operation> updateConnectionProfileCallable()
Overrides

updateConnectionProfileOperationCallable()

public OperationCallable<UpdateConnectionProfileRequest,ConnectionProfile,OperationMetadata> updateConnectionProfileOperationCallable()
Overrides

updateStreamCallable()

public UnaryCallable<UpdateStreamRequest,Operation> updateStreamCallable()
Overrides

updateStreamOperationCallable()

public OperationCallable<UpdateStreamRequest,Stream,OperationMetadata> updateStreamOperationCallable()
Overrides