Class HttpJsonCaseServiceStub (0.35.0)

public class HttpJsonCaseServiceStub extends CaseServiceStub

REST stub implementation for the CaseService service API.

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

Inheritance

java.lang.Object > CaseServiceStub > HttpJsonCaseServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(CaseServiceStubSettings settings)

public static final HttpJsonCaseServiceStub create(CaseServiceStubSettings settings)
Parameter
Name Description
settings CaseServiceStubSettings
Returns
Type Description
HttpJsonCaseServiceStub
Exceptions
Type Description
IOException

getMethodDescriptors()

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

Constructors

HttpJsonCaseServiceStub(CaseServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonCaseServiceStub(CaseServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonCaseServiceStub, 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 CaseServiceStubSettings
clientContext ClientContext

HttpJsonCaseServiceStub(CaseServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonCaseServiceStub(CaseServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonCaseServiceStub, 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 CaseServiceStubSettings
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

closeCaseCallable()

public UnaryCallable<CloseCaseRequest,Case> closeCaseCallable()
Returns
Type Description
UnaryCallable<CloseCaseRequest,Case>
Overrides

createCaseCallable()

public UnaryCallable<CreateCaseRequest,Case> createCaseCallable()
Returns
Type Description
UnaryCallable<CreateCaseRequest,Case>
Overrides

escalateCaseCallable()

public UnaryCallable<EscalateCaseRequest,Case> escalateCaseCallable()
Returns
Type Description
UnaryCallable<EscalateCaseRequest,Case>
Overrides

getCaseCallable()

public UnaryCallable<GetCaseRequest,Case> getCaseCallable()
Returns
Type Description
UnaryCallable<GetCaseRequest,Case>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listCasesCallable()

public UnaryCallable<ListCasesRequest,ListCasesResponse> listCasesCallable()
Returns
Type Description
UnaryCallable<ListCasesRequest,ListCasesResponse>
Overrides

listCasesPagedCallable()

public UnaryCallable<ListCasesRequest,CaseServiceClient.ListCasesPagedResponse> listCasesPagedCallable()
Returns
Type Description
UnaryCallable<ListCasesRequest,ListCasesPagedResponse>
Overrides

searchCaseClassificationsCallable()

public UnaryCallable<SearchCaseClassificationsRequest,SearchCaseClassificationsResponse> searchCaseClassificationsCallable()
Returns
Type Description
UnaryCallable<SearchCaseClassificationsRequest,SearchCaseClassificationsResponse>
Overrides

searchCaseClassificationsPagedCallable()

public UnaryCallable<SearchCaseClassificationsRequest,CaseServiceClient.SearchCaseClassificationsPagedResponse> searchCaseClassificationsPagedCallable()
Returns
Type Description
UnaryCallable<SearchCaseClassificationsRequest,SearchCaseClassificationsPagedResponse>
Overrides

searchCasesCallable()

public UnaryCallable<SearchCasesRequest,SearchCasesResponse> searchCasesCallable()
Returns
Type Description
UnaryCallable<SearchCasesRequest,SearchCasesResponse>
Overrides

searchCasesPagedCallable()

public UnaryCallable<SearchCasesRequest,CaseServiceClient.SearchCasesPagedResponse> searchCasesPagedCallable()
Returns
Type Description
UnaryCallable<SearchCasesRequest,SearchCasesPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateCaseCallable()

public UnaryCallable<UpdateCaseRequest,Case> updateCaseCallable()
Returns
Type Description
UnaryCallable<UpdateCaseRequest,Case>
Overrides