public interface RequestMetadataCallback
Credentials.getRequestMetadata(java.net.URI, java.util.concurrent.Executor,
RequestMetadataCallback)
. Exactly one method should be called.Modifier and Type | Method and Description |
---|---|
void |
onFailure(Throwable exception)
Called when metadata generation failed.
|
void |
onSuccess(Map<String,List<String>> metadata)
Called when metadata is successfully produced.
|
void onSuccess(Map<String,List<String>> metadata)
metadata
- Metadata returned for the request.void onFailure(Throwable exception)
exception
- The thrown exception which caused the request metadata fetch to fail.Copyright © 2023 Google. All rights reserved.