Class DownloadRequest

All Implemented Interfaces:
Request<byte[]>

public class DownloadRequest extends ASearchRequest<DownloadRequest,byte[]>
  • Constructor Details

  • Method Details

    • queue

      public CompletableFuture<byte[]> queue()
      Description copied from interface: Request
      Queue the request asynchronous.
      Specified by:
      queue in interface Request<byte[]>
      Specified by:
      queue in class RequestBuilder<byte[]>
      Returns:
      completable future providing the response
    • complete

      public byte[] complete()
      Description copied from interface: Request
      Sends the request and handles the response on the current thread
      Specified by:
      complete in interface Request<byte[]>
      Specified by:
      complete in class RequestBuilder<byte[]>
      Returns:
      response