@API(value=INTERNAL) public interface SubspaceProvider
Modifier and Type | Method and Description |
---|---|
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 . |
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 Subspace getSubspace(@Nonnull FDBRecordContext context)
context
- record context used to resolve the subspace@Nonnull CompletableFuture<Subspace> getSubspaceAsync(@Nonnull FDBRecordContext context)
FDBRecordContext
.context
- record context used to resolve the subspace@Nonnull LogMessageKeys logKey()
String toString(@Nonnull FDBRecordContext context)
FDBRecordContext
but might, for example, use it to retrieve a subspace previously
resolved against the corresponding database.context
- record context used to resolve the subspace