MCPcopy Create free account
hub / github.com/apple/foundationdb / instance

Method instance

bindings/java/src/main/com/apple/foundationdb/FDB.java:152–159  ·  view source on GitHub ↗

Return the instance of the FDB API singleton. This method will always return a non-null value for the singleton, but if the #selectAPIVersion(int) selectAPIVersion() method has not yet been called, it will throw an FDBException indicating that an API version has not yet b

()

Source from the content-addressed store, hash-verified

150 * @throws FDBException if {@link #selectAPIVersion(int) selectAPIVersion()} has not been called
151 */
152 public static FDB instance() throws FDBException {
153 if(singleton != null) {
154 return singleton;
155 }
156 else {
157 throw new FDBException("API version is not set", 2200);
158 }
159 }
160
161 /**
162 * Select the version for the client API. An exception will be thrown if the

Callers 13

processInstructionMethod · 0.95
mainMethod · 0.95
processInstructionMethod · 0.95
mainMethod · 0.95
finalizeMethod · 0.95
openDatabaseMethod · 0.95
checkUnclosedMethod · 0.95
getRange_internalMethod · 0.95
finalizeMethod · 0.95

Calls

no outgoing calls

Tested by 6

processInstructionMethod · 0.76
mainMethod · 0.76
processInstructionMethod · 0.76
mainMethod · 0.76