EventGridClient Interface
public interface EventGridClient
The interface for EventGridClient class.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| abstract java.lang.String |
acceptLanguage()
Gets Gets or sets the preferred language for the response.. |
| abstract java.lang.String |
apiVersion()
Gets Version of the API to be used with the client request.. |
| abstract boolean |
generateClientRequestId()
Gets When set to true a unique x-ms-client-request-id value is generated and included in each request. |
| abstract com.microsoft.azure.AzureClient |
getAzureClient()
Gets the AzureClient used for long running operations. |
| abstract int |
longRunningOperationRetryTimeout()
Gets Gets or sets the retry timeout in seconds for Long Running Operations. |
| abstract void |
publishEvents(String topicHostname, List<EventGridEvent> events)
Publishes a batch of events to an Azure Event Grid topic. |
| abstract rx.Observable<java.lang.Void> |
publishEventsAsync(String topicHostname, List<EventGridEvent> events)
Publishes a batch of events to an Azure Event Grid topic. |
| abstract com.microsoft.rest.ServiceFuture<java.lang.Void> |
publishEventsAsync(String topicHostname, List<EventGridEvent> events, ServiceCallback<Void> serviceCallback)
Publishes a batch of events to an Azure Event Grid topic. |
| abstract rx.Observable<com.microsoft.rest.ServiceResponse<java.lang.Void>> |
publishEventsWithServiceResponseAsync(String topicHostname, List<EventGridEvent> events)
Publishes a batch of events to an Azure Event Grid topic. |
| abstract com.microsoft.rest.RestClient |
restClient()
Gets the REST client. |
| abstract java.lang.String |
userAgent()
Gets the User-Agent header for the client. |
|
abstract
Event |
withAcceptLanguage(String acceptLanguage)
Sets Gets or sets the preferred language for the response.. |
|
abstract
Event |
withGenerateClientRequestId(boolean generateClientRequestId)
Sets When set to true a unique x-ms-client-request-id value is generated and included in each request. |
|
abstract
Event |
withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout)
Sets Gets or sets the retry timeout in seconds for Long Running Operations. |
Method Details
acceptLanguage
public abstract String acceptLanguage()
Gets Gets or sets the preferred language for the response..
Returns:
apiVersion
public abstract String apiVersion()
Gets Version of the API to be used with the client request..
Returns:
generateClientRequestId
public abstract boolean generateClientRequestId()
Gets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true..
Returns:
getAzureClient
public abstract AzureClient getAzureClient()
Gets the AzureClient used for long running operations.
Returns:
longRunningOperationRetryTimeout
public abstract int longRunningOperationRetryTimeout()
Gets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30..
Returns:
publishEvents
public abstract void publishEvents(String topicHostname, List<EventGridEvent> events)
Publishes a batch of events to an Azure Event Grid topic.
Parameters:
publishEventsAsync
public abstract Observable<Void> publishEventsAsync(String topicHostname, List<EventGridEvent> events)
Publishes a batch of events to an Azure Event Grid topic.
Parameters:
Returns:
publishEventsAsync
public abstract ServiceFuture<Void> publishEventsAsync(String topicHostname, List<EventGridEvent> events, ServiceCallback<Void> serviceCallback)
Publishes a batch of events to an Azure Event Grid topic.
Parameters:
Returns:
publishEventsWithServiceResponseAsync
public abstract Observable<ServiceResponse<Void>> publishEventsWithServiceResponseAsync(String topicHostname, List<EventGridEvent> events)
Publishes a batch of events to an Azure Event Grid topic.
Parameters:
Returns:
restClient
public abstract RestClient restClient()
Gets the REST client.
Returns:
userAgent
public abstract String userAgent()
Gets the User-Agent header for the client.
Returns:
withAcceptLanguage
public abstract EventGridClient withAcceptLanguage(String acceptLanguage)
Sets Gets or sets the preferred language for the response..
Parameters:
Returns:
withGenerateClientRequestId
public abstract EventGridClient withGenerateClientRequestId(boolean generateClientRequestId)
Sets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true..
Parameters:
Returns:
withLongRunningOperationRetryTimeout
public abstract EventGridClient withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout)
Sets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30..
Parameters:
Returns: