@API(value=INTERNAL) public class SubspaceProviderBySubspace extends Object implements SubspaceProvider
Constructor and Description |
---|
SubspaceProviderBySubspace(Subspace subspace) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
Subspace |
getSubspace(FDBRecordContext context)
This might be blocking if the subspace is never fetched before.
|
CompletableFuture<Subspace> |
getSubspaceAsync(FDBRecordContext context)
Asynchronously resolves the subspace against the database associated with
FDBRecordContext . |
int |
hashCode() |
LogMessageKeys |
logKey() |
String |
toString() |
String |
toString(FDBRecordContext context)
This method is typically called in support of error logging; hence, implementations should not assume
a working
FDBRecordContext but might, for example, use it to retrieve a subspace previously
resolved against the corresponding database. |
@Nonnull public Subspace getSubspace(@Nonnull FDBRecordContext context)
SubspaceProvider
getSubspace
in interface SubspaceProvider
context
- record context used to resolve the subspace@Nonnull public CompletableFuture<Subspace> getSubspaceAsync(@Nonnull FDBRecordContext context)
SubspaceProvider
FDBRecordContext
.getSubspaceAsync
in interface SubspaceProvider
context
- record context used to resolve the subspace@Nonnull public LogMessageKeys logKey()
logKey
in interface SubspaceProvider
public String toString(@Nonnull FDBRecordContext context)
SubspaceProvider
FDBRecordContext
but might, for example, use it to retrieve a subspace previously
resolved against the corresponding database.toString
in interface SubspaceProvider
context
- record context used to resolve the subspacepublic String toString()
toString
in interface SubspaceProvider
toString
in class Object