public class DefectServiceAsyncClient extends DefectServiceClient implements DefectServiceAsync
credentialsProvider, exceptionUnmarshallers, executorService, signerclient, configuration, endpoint, requestHandlers, timeOffset| Constructor and Description |
|---|
DefectServiceAsyncClient()
Constructs a new client to invoke service method on DefectService using
the default qTest credentials provider and default client configuration options.
|
DefectServiceAsyncClient(ClientConfiguration clientConfiguration)
Constructs a new client to invoke service method on DefectService using
the default qTest credentials provider and client configuration options.
|
DefectServiceAsyncClient(ClientConfiguration clientConfiguration,
java.util.concurrent.ExecutorService executorService)
Constructs a new client to invoke service method on DefectService using
the default qTest credentials provider and client configuration options.
|
DefectServiceAsyncClient(java.util.concurrent.ExecutorService executorService)
Constructs a new client to invoke service method on DefectService using
the default qTest credentials provider and default client configuration options.
|
DefectServiceAsyncClient(QTestCredentials credentials)
Constructs a new client to invoke service method on DefectService using
the specified qTest credentials.
|
DefectServiceAsyncClient(QTestCredentials credentials,
ClientConfiguration clientConfiguration)
Constructs a new client to invoke service method on DefectService using
the specified qTest credentials and client configuration options.
|
DefectServiceAsyncClient(QTestCredentials credentials,
ClientConfiguration clientConfiguration,
java.util.concurrent.ExecutorService executorService)
Constructs a new client to invoke service method on DefectService using
the specified qTest credentials and client configuration options.
|
DefectServiceAsyncClient(QTestCredentials credentials,
java.util.concurrent.ExecutorService executorService)
Constructs a new client to invoke service method on DefectService using
the specified qTest credentials.
|
DefectServiceAsyncClient(QTestCredentialsProvider credentialsProvider,
ClientConfiguration clientConfiguration)
Constructs a new client to invoke service method on DefectService using
the specified qTest credentials provider and client configuration options.
|
DefectServiceAsyncClient(QTestCredentialsProvider credentialsProvider,
ClientConfiguration clientConfiguration,
java.util.concurrent.ExecutorService executorService)
Constructs a new client to invoke service method on DefectService using
the specified qTest credentials provider and client configuration options.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.Future<Defect> |
addCommentAsync(CreateObjectCommentRequest createObjectCommentRequest)
Creates defect comment from the given request.
|
java.util.concurrent.Future<Defect> |
addCommentAsync(CreateObjectCommentRequest createObjectCommentRequest,
AsyncHandler<CreateObjectCommentRequest,Defect> asyncHandler)
Creates defect comment from the given request.
|
java.util.concurrent.Future<Defect> |
createDefectAsync(CreateDefectRequest createDefectRequest)
Creates defect from the given
CreateDefectRequest instance. |
java.util.concurrent.Future<Defect> |
createDefectAsync(CreateDefectRequest createDefectRequest,
AsyncHandler<CreateDefectRequest,Defect> asyncHandler)
Creates defect from the given
CreateDefectRequest instance. |
void |
shutdown()
Shutdown this client object, release any resources that might be held
open.
|
addComment, createDefectinit, invoke, withEndpointaddRequestHandler, createExecutionContext, createHttpAuthClient, getTimeOffset, removeRequestHandler, setConfiguration, setEndpoint, setTimeOffset, withConfiguration, withRequestHandler, withTimeOffsetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddComment, createDefectsetEndpointpublic DefectServiceAsyncClient()
public DefectServiceAsyncClient(java.util.concurrent.ExecutorService executorService)
executorService - the executor service for executing asynchronous request.public DefectServiceAsyncClient(ClientConfiguration clientConfiguration)
clientConfiguration - The client configuration options controlling how this
client connects to DefectServicepublic DefectServiceAsyncClient(ClientConfiguration clientConfiguration, java.util.concurrent.ExecutorService executorService)
clientConfiguration - The client configuration options controlling how this
client connects to DefectService.executorService - the executor service for executing asynchronous request.public DefectServiceAsyncClient(QTestCredentials credentials)
credentials - The qTest credentials which will provide
credentials to authenticate request with qTest services.public DefectServiceAsyncClient(QTestCredentials credentials, java.util.concurrent.ExecutorService executorService)
credentials - The qTest credentials which will provide
credentials to authenticate request with qTest services.executorService - the executor service for executing asynchronous request.public DefectServiceAsyncClient(QTestCredentials credentials, ClientConfiguration clientConfiguration)
credentials - The qTest credentials which will provide
credentials to authenticate request with qTest services.clientConfiguration - The client configuration options controlling how this
client connects to DefectServicepublic DefectServiceAsyncClient(QTestCredentials credentials, ClientConfiguration clientConfiguration, java.util.concurrent.ExecutorService executorService)
credentials - The qTest credentials which will provide
credentials to authenticate request with qTest services.clientConfiguration - The client configuration options controlling how this
client connects to DefectServiceexecutorService - the executor service for executing asynchronous request.public DefectServiceAsyncClient(QTestCredentialsProvider credentialsProvider, ClientConfiguration clientConfiguration)
credentialsProvider - The qTest credentials provider which will provide
credentials to authenticate request with qTest services.clientConfiguration - The client configuration options controlling how this
client connects to DefectServicepublic DefectServiceAsyncClient(QTestCredentialsProvider credentialsProvider, ClientConfiguration clientConfiguration, java.util.concurrent.ExecutorService executorService)
credentialsProvider - The qTest credentials provider which will provide
credentials to authenticate request with qTest services.clientConfiguration - The client configuration options controlling how this
client connects to DefectServiceexecutorService - the executor service for executing asynchronous request.public java.util.concurrent.Future<Defect> createDefectAsync(CreateDefectRequest createDefectRequest) throws AuthServiceException
DefectServiceAsyncCreateDefectRequest instance.createDefectAsync in interface DefectServiceAsynccreateDefectRequest - the given CreateDefectRequest instance.Defect instance.AuthServiceException - if an error occurs during creating request.public java.util.concurrent.Future<Defect> createDefectAsync(CreateDefectRequest createDefectRequest, AsyncHandler<CreateDefectRequest,Defect> asyncHandler) throws AuthServiceException
DefectServiceAsyncCreateDefectRequest instance.createDefectAsync in interface DefectServiceAsynccreateDefectRequest - the given CreateDefectRequest instance.asyncHandler - callback handler for events in the life-cycle of the request.
Users could provide the implementation of the for callback
methods in this interface to process the operation result or
handle the exception.Defect instance.AuthServiceException - if an error occurs during creating request.public java.util.concurrent.Future<Defect> addCommentAsync(CreateObjectCommentRequest createObjectCommentRequest) throws AuthServiceException
DefectServiceAsyncaddCommentAsync in interface DefectServiceAsynccreateObjectCommentRequest - the given CreateObjectCommentRequest instance.Defect instance.AuthServiceException - if an error occurs during creating defect comment.public java.util.concurrent.Future<Defect> addCommentAsync(CreateObjectCommentRequest createObjectCommentRequest, AsyncHandler<CreateObjectCommentRequest,Defect> asyncHandler) throws AuthServiceException
DefectServiceAsyncaddCommentAsync in interface DefectServiceAsynccreateObjectCommentRequest - the given CreateObjectCommentRequest instance.asyncHandler - callback handler for events in the life-cycle of the request.
Users could provide the implementation of the for callback
methods in this interface to process the operation result or
handle the exception.Defect instance.AuthServiceException - if an error occurs during creating defect comment.public void shutdown()
ApiWebServiceClientshutdown in interface QTestServiceshutdown in class QTestApiWebServiceClient<DefectServiceClient>