Interface TimeoutableApiRequest<T>

All Known Implementing Classes:
GetMessageEventsApiRequest

public interface TimeoutableApiRequest<T>
REST API requests to be executed and return a result of type T.
  • Method Summary

    Modifier and Type
    Method
    Description
    execute(int responseTimeoutSeconds)
    Invokes the HTTP client to send the request to the Zulip REST API and returns a response as type T.
  • Method Details

    • execute

      T execute(int responseTimeoutSeconds) throws ZulipClientException
      Invokes the HTTP client to send the request to the Zulip REST API and returns a response as type T.
      Parameters:
      responseTimeoutSeconds - The timeout value in seconds for the response to timeout
      Returns:
      The response for type T
      Throws:
      ZulipClientException - if an error occurs for the API request