public class Operation<R,M> extends Object
Modifier and Type | Method and Description |
---|---|
M |
getMetadata()
Returns the metadata returned by the last refresh of this operation.
|
String |
getName()
Returns the name of the operation.
|
R |
getResult()
Returns result of the operation if the operation is complete and had a result.
|
boolean |
isDone()
Returns true if the operation is done.
|
boolean |
isSuccessful()
Returns true if the operation completed successfully.
|
Operation<R,M> |
reload()
Fetches the current status of this operation.
|
Operation<R,M> |
waitFor(com.google.cloud.RetryOption... waitOptions)
Blocks till the operation is complete or maximum time, if specified, has elapsed.
|
public Operation<R,M> reload() throws SpannerException
SpannerException
public Operation<R,M> waitFor(com.google.cloud.RetryOption... waitOptions) throws SpannerException
SpannerException
public M getMetadata()
public boolean isDone()
public R getResult() throws SpannerException
SpannerException
- if the operation failed.public String getName()
public boolean isSuccessful()
Copyright © 2022 Google LLC. All rights reserved.