Class BatchResult<T>
java.lang.Object
com.ironcorelabs.tenantsecurity.kms.v1.BatchResult<T>
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 Summary
ConstructorDescriptionBatchResult
(ConcurrentMap<String, T> successes, ConcurrentMap<String, TenantSecurityException> failures) -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Use getSuccesses() insteadGet a Map from the ID to an exception that occurred when encrypting or decrypting the data.Get the Map from ID to successfully encrypted or decrypted data.boolean
Deprecated.Use hasSuccesses() insteadboolean
Returns whether the batch result had any failures when encrypting/decrypting data.boolean
Returns whether the batch result had any successful encrypted/decrypted data.
-
Constructor Details
-
BatchResult
public BatchResult(ConcurrentMap<String, T> successes, ConcurrentMap<String, TenantSecurityException> failures)
-
-
Method Details
-
getDocuments
Deprecated.Use getSuccesses() insteadGet the Map from ID to successfully encrypted or decrypted data. -
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.Use hasSuccesses() insteadReturns 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.
-