Class HttpJsonCaseServiceStub (0.8.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
NameDescription
clientContextClientContext
Returns
TypeDescription
HttpJsonCaseServiceStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(CaseServiceStubSettings settings)

public static final HttpJsonCaseServiceStub create(CaseServiceStubSettings settings)
Parameter
NameDescription
settingsCaseServiceStubSettings
Returns
TypeDescription
HttpJsonCaseServiceStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
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
NameDescription
settingsCaseServiceStubSettings
clientContextClientContext

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
NameDescription
settingsCaseServiceStubSettings
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

closeCaseCallable()

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

createCaseCallable()

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

escalateCaseCallable()

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

getCaseCallable()

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

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listCasesCallable()

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

listCasesPagedCallable()

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

searchCaseClassificationsCallable()

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

searchCaseClassificationsPagedCallable()

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

searchCasesCallable()

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

searchCasesPagedCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateCaseCallable()

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