Interface RequestMetadataCallback (1.27.0)
Stay organized with collections
Save and categorize content based on your preferences.
publicinterface RequestMetadataCallbackThe callback that receives the result of the asynchronous Credentials#getRequestMetadata(java.net.URI, java.util.concurrent.Executor, RequestMetadataCallback). Exactly one method should be called.
Methods
onFailure(Throwable exception)
publicabstractvoidonFailure(Throwableexception)Called when metadata generation failed.
| Parameter | |
|---|---|
| Name | Description |
exception |
Throwable The thrown exception which caused the request metadata fetch to fail. |
onSuccess(Map<String,List<String>> metadata)
publicabstractvoidonSuccess(Map<String,List<String>>metadata)Called when metadata is successfully produced.
| Parameter | |
|---|---|
| Name | Description |
metadata |
Map<String,List<String>>Metadata returned for the request. |