Class HttpJsonFeedServiceStub (0.47.0)

public class HttpJsonFeedServiceStub extends FeedServiceStub

REST stub implementation for the FeedService service API.

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

Inheritance

java.lang.Object > FeedServiceStub > HttpJsonFeedServiceStub

Static Methods

create(ClientContext clientContext)

public static final HttpJsonFeedServiceStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonFeedServiceStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonFeedServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory
Returns
Type Description
HttpJsonFeedServiceStub
Exceptions
Type Description
IOException

create(FeedServiceStubSettings settings)

public static final HttpJsonFeedServiceStub create(FeedServiceStubSettings settings)
Parameter
Name Description
settings FeedServiceStubSettings
Returns
Type Description
HttpJsonFeedServiceStub
Exceptions
Type Description
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
List<ApiMethodDescriptor>

Constructors

HttpJsonFeedServiceStub(FeedServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonFeedServiceStub(FeedServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonFeedServiceStub, 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
Name Description
settings FeedServiceStubSettings
clientContext ClientContext

HttpJsonFeedServiceStub(FeedServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonFeedServiceStub(FeedServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonFeedServiceStub, 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
Name Description
settings FeedServiceStubSettings
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

showFeedCallable()

public UnaryCallable<ShowFeedRequest,ShowFeedResponse> showFeedCallable()
Returns
Type Description
UnaryCallable<ShowFeedRequest,ShowFeedResponse>
Overrides

showFeedPagedCallable()

public UnaryCallable<ShowFeedRequest,FeedServiceClient.ShowFeedPagedResponse> showFeedPagedCallable()
Returns
Type Description
UnaryCallable<ShowFeedRequest,ShowFeedPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()