Interface BatchesService

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      <T extends Batch<?>>
      T
      cancel​(String batchId)
      Cancel a batch message
      A batch can be canceled at any point.
      DryRun dryRun​(boolean perRecipient, int numberOfRecipient, BaseBatch<?> batch)
      Dry run
      This operation will perform a dry run of a batch which calculates the bodies and number of parts for all messages in the batch without actually sending any messages.
      <T extends Batch<?>>
      T
      get​(String batchId)
      Get a batch message
      This operation returns a specific batch that matches the provided batch ID.
      BatchesListResponse list​(BatchesListRequestParameters parameters)
      List Batches
      With the list operation you can list batch messages created in the last 14 days that you have created.
      <T extends Batch<?>>
      T
      replace​(String batchId, BaseBatch<?> batch)
      Replace a batch
      This operation will replace all the parameters of a batch with the provided values.
      <T extends Batch<?>>
      T
      send​(BaseBatch<?> batch)
      Send a message or a batch of messages
      Depending on the length of the body, one message might be split into multiple parts and charged accordingly.
      void sendDeliveryFeedback​(String batchId, Collection<String> recipients)
      Send delivery feedback for a message
      <T extends Batch<?>>
      T
      update​(String batchId, UpdateBaseBatchRequest<?> batch)
      Update a Batch message
      This operation updates all specified parameters of a batch that matches the provided batch ID.