Class BatchResult<T>

java.lang.Object
com.ironcorelabs.tenantsecurity.kms.v1.BatchResult<T>

public final class BatchResult<T> extends Object
Holds result of a batch encrypt or decrypt operation which supports partial failure. Batch operations can have both successes and failures and this class holds both fields.
  • Constructor Details

  • Method Details

    • getDocuments

      @Deprecated public ConcurrentMap<String,T> getDocuments()
      Deprecated.
      Use getSuccesses() instead
      Get the Map from ID to successfully encrypted or decrypted data.
    • getSuccesses

      public ConcurrentMap<String,T> getSuccesses()
      Get the Map from ID to successfully encrypted or decrypted data.
    • getFailures

      Get a Map from the ID to an exception that occurred when encrypting or decrypting the data.
    • hasDocuments

      @Deprecated public boolean hasDocuments()
      Deprecated.
      Use hasSuccesses() instead
      Returns whether the batch result had any successful encrypted/decrypted data.
    • hasSuccesses

      public boolean hasSuccesses()
      Returns whether the batch result had any successful encrypted/decrypted data.
    • hasFailures

      public boolean hasFailures()
      Returns whether the batch result had any failures when encrypting/decrypting data.