public interface EventGridClient
| Modifier and Type | Method and Description |
|---|---|
String |
acceptLanguage()
Gets Gets or sets the preferred language for the response..
|
String |
apiVersion()
Gets Version of the API to be used with the client request..
|
boolean |
generateClientRequestId()
Gets When set to true a unique x-ms-client-request-id value is generated and included in each request.
|
com.microsoft.azure.AzureClient |
getAzureClient()
Gets the
AzureClient used for long running operations. |
int |
longRunningOperationRetryTimeout()
Gets Gets or sets the retry timeout in seconds for Long Running Operations.
|
void |
publishEvents(String topicHostname,
List<EventGridEvent> events)
Publishes a batch of events to an Azure Event Grid topic.
|
rx.Observable<Void> |
publishEventsAsync(String topicHostname,
List<EventGridEvent> events)
Publishes a batch of events to an Azure Event Grid topic.
|
com.microsoft.rest.ServiceFuture<Void> |
publishEventsAsync(String topicHostname,
List<EventGridEvent> events,
com.microsoft.rest.ServiceCallback<Void> serviceCallback)
Publishes a batch of events to an Azure Event Grid topic.
|
rx.Observable<com.microsoft.rest.ServiceResponse<Void>> |
publishEventsWithServiceResponseAsync(String topicHostname,
List<EventGridEvent> events)
Publishes a batch of events to an Azure Event Grid topic.
|
com.microsoft.rest.RestClient |
restClient()
Gets the REST client.
|
String |
userAgent()
Gets the User-Agent header for the client.
|
EventGridClient |
withAcceptLanguage(String acceptLanguage)
Sets Gets or sets the preferred language for the response..
|
EventGridClient |
withGenerateClientRequestId(boolean generateClientRequestId)
Sets When set to true a unique x-ms-client-request-id value is generated and included in each request.
|
EventGridClient |
withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout)
Sets Gets or sets the retry timeout in seconds for Long Running Operations.
|
com.microsoft.rest.RestClient restClient()
RestClient object.com.microsoft.azure.AzureClient getAzureClient()
AzureClient used for long running operations.String userAgent()
String apiVersion()
String acceptLanguage()
EventGridClient withAcceptLanguage(String acceptLanguage)
acceptLanguage - the acceptLanguage value.int longRunningOperationRetryTimeout()
EventGridClient withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout)
longRunningOperationRetryTimeout - the longRunningOperationRetryTimeout value.boolean generateClientRequestId()
EventGridClient withGenerateClientRequestId(boolean generateClientRequestId)
generateClientRequestId - the generateClientRequestId value.void publishEvents(String topicHostname, List<EventGridEvent> events)
topicHostname - The host name of the topic, e.g. topic1.westus2-1.eventgrid.azure.netevents - An array of events to be published to Event Grid.IllegalArgumentException - thrown if parameters fail the validationcom.microsoft.azure.CloudException - thrown if the request is rejected by serverRuntimeException - all other wrapped checked exceptions if the request fails to be sentcom.microsoft.rest.ServiceFuture<Void> publishEventsAsync(String topicHostname, List<EventGridEvent> events, com.microsoft.rest.ServiceCallback<Void> serviceCallback)
topicHostname - The host name of the topic, e.g. topic1.westus2-1.eventgrid.azure.netevents - An array of events to be published to Event Grid.serviceCallback - the async ServiceCallback to handle successful and failed responses.ServiceFuture objectIllegalArgumentException - thrown if parameters fail the validationrx.Observable<Void> publishEventsAsync(String topicHostname, List<EventGridEvent> events)
topicHostname - The host name of the topic, e.g. topic1.westus2-1.eventgrid.azure.netevents - An array of events to be published to Event Grid.ServiceResponse object if successful.IllegalArgumentException - thrown if parameters fail the validationrx.Observable<com.microsoft.rest.ServiceResponse<Void>> publishEventsWithServiceResponseAsync(String topicHostname, List<EventGridEvent> events)
topicHostname - The host name of the topic, e.g. topic1.westus2-1.eventgrid.azure.netevents - An array of events to be published to Event Grid.ServiceResponse object if successful.IllegalArgumentException - thrown if parameters fail the validation /**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/