Package com.google.auth
Interface RequestMetadataCallback
-
public interface RequestMetadataCallback
The callback that receives the result of the asynchronousCredentials.getRequestMetadata(java.net.URI, java.util.concurrent.Executor, RequestMetadataCallback)
. Exactly one method should be called.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onFailure(java.lang.Throwable exception)
Called when metadata generation failed.void
onSuccess(java.util.Map<java.lang.String,java.util.List<java.lang.String>> metadata)
Called when metadata is successfully produced.
-
-
-
Method Detail
-
onSuccess
void onSuccess(java.util.Map<java.lang.String,java.util.List<java.lang.String>> metadata)
Called when metadata is successfully produced.- Parameters:
metadata
- Metadata returned for the request.
-
onFailure
void onFailure(java.lang.Throwable exception)
Called when metadata generation failed.- Parameters:
exception
- The thrown exception which caused the request metadata fetch to fail.
-
-