Package com.arangodb
Interface ArangoDBAsync
- All Superinterfaces:
ArangoSerdeAccessor
- All Known Implementing Classes:
ArangoDBAsyncImpl
Asynchronous version of
ArangoDB
-
Method Summary
Modifier and TypeMethodDescriptioncreateDatabase
(DBCreateOptions options) Asynchronous version ofArangoDB.createDatabase(DBCreateOptions)
createDatabase
(String name) Asynchronous version ofArangoDB.createDatabase(String)
createUser
(String user, String passwd) Asynchronous version ofArangoDB.createUser(String, String)
createUser
(String user, String passwd, UserCreateOptions options) Asynchronous version ofArangoDB.createUser(String, String, UserCreateOptions)
db()
Returns aArangoDatabase
instance for the_system
database.Returns aArangoDatabase
instance for the given database name.deleteUser
(String user) Asynchronous version ofArangoDB.deleteUser(String)
<T> CompletableFuture<Response<T>>
Asynchronous version ofArangoDB.execute(Request, Class)
Asynchronous version ofArangoDB.getAccessibleDatabases()
Asynchronous version ofArangoDB.getAccessibleDatabasesFor(String)
Asynchronous version ofArangoDB.getDatabases()
Asynchronous version ofArangoDB.getEngine()
getLogEntries
(LogOptions options) Asynchronous version ofArangoDB.getLogEntries(LogOptions)
Asynchronous version ofArangoDB.getLogLevel()
getLogLevel
(LogLevelOptions options) Asynchronous version ofArangoDB.getLogLevel(LogLevelOptions)
Asynchronous version ofArangoDB.getQueryOptimizerRules()
getRole()
Asynchronous version ofArangoDB.getRole()
Asynchronous version ofArangoDB.getServerId()
Asynchronous version ofArangoDB.getUser(String)
getUsers()
Asynchronous version ofArangoDB.getUsers()
Asynchronous version ofArangoDB.getVersion()
grantDefaultCollectionAccess
(String user, Permissions permissions) Asynchronous version ofArangoDB.grantDefaultCollectionAccess(String, Permissions)
grantDefaultDatabaseAccess
(String user, Permissions permissions) Asynchronous version ofArangoDB.grantDefaultDatabaseAccess(String, Permissions)
metrics()
replaceUser
(String user, UserUpdateOptions options) Asynchronous version ofArangoDB.replaceUser(String, UserUpdateOptions)
resetLogLevels
(LogLevelOptions options) Asynchronous version ofArangoDB.resetLogLevels(LogLevelOptions)
setLogLevel
(LogLevelEntity entity) Asynchronous version ofArangoDB.setLogLevel(LogLevelEntity)
setLogLevel
(LogLevelEntity entity, LogLevelOptions options) Asynchronous version ofArangoDB.setLogLevel(LogLevelEntity, LogLevelOptions)
void
shutdown()
Releases all connections to the server and clear the connection pool.void
Updates the JWT used for requests authorization.updateUser
(String user, UserUpdateOptions options) Asynchronous version ofArangoDB.updateUser(String, UserUpdateOptions)
Methods inherited from interface com.arangodb.ArangoSerdeAccessor
getSerde
-
Method Details
-
shutdown
void shutdown()Releases all connections to the server and clear the connection pool. -
updateJwt
Updates the JWT used for requests authorization. It does not change already existing VST connections, since VST connections are authenticated during the initialization phase.- Parameters:
jwt
- token to use
-
db
ArangoDatabaseAsync db()Returns aArangoDatabase
instance for the_system
database.- Returns:
- database handler
-
db
Returns aArangoDatabase
instance for the given database name.- Parameters:
name
- Name of the database- Returns:
- database handler
-
metrics
ArangoMetrics metrics()- Returns:
- entry point for accessing client metrics
-
createDatabase
Asynchronous version ofArangoDB.createDatabase(String)
-
createDatabase
Asynchronous version ofArangoDB.createDatabase(DBCreateOptions)
-
getDatabases
CompletableFuture<Collection<String>> getDatabases()Asynchronous version ofArangoDB.getDatabases()
-
getAccessibleDatabases
CompletableFuture<Collection<String>> getAccessibleDatabases()Asynchronous version ofArangoDB.getAccessibleDatabases()
-
getAccessibleDatabasesFor
Asynchronous version ofArangoDB.getAccessibleDatabasesFor(String)
-
getVersion
CompletableFuture<ArangoDBVersion> getVersion()Asynchronous version ofArangoDB.getVersion()
-
getEngine
CompletableFuture<ArangoDBEngine> getEngine()Asynchronous version ofArangoDB.getEngine()
-
getRole
CompletableFuture<ServerRole> getRole()Asynchronous version ofArangoDB.getRole()
-
getServerId
CompletableFuture<String> getServerId()Asynchronous version ofArangoDB.getServerId()
-
createUser
Asynchronous version ofArangoDB.createUser(String, String)
-
createUser
Asynchronous version ofArangoDB.createUser(String, String, UserCreateOptions)
-
deleteUser
Asynchronous version ofArangoDB.deleteUser(String)
-
getUser
Asynchronous version ofArangoDB.getUser(String)
-
getUsers
CompletableFuture<Collection<UserEntity>> getUsers()Asynchronous version ofArangoDB.getUsers()
-
updateUser
Asynchronous version ofArangoDB.updateUser(String, UserUpdateOptions)
-
replaceUser
Asynchronous version ofArangoDB.replaceUser(String, UserUpdateOptions)
-
grantDefaultDatabaseAccess
Asynchronous version ofArangoDB.grantDefaultDatabaseAccess(String, Permissions)
-
grantDefaultCollectionAccess
Asynchronous version ofArangoDB.grantDefaultCollectionAccess(String, Permissions)
-
execute
Asynchronous version ofArangoDB.execute(Request, Class)
-
getLogEntries
Asynchronous version ofArangoDB.getLogEntries(LogOptions)
-
getLogLevel
CompletableFuture<LogLevelEntity> getLogLevel()Asynchronous version ofArangoDB.getLogLevel()
-
getLogLevel
Asynchronous version ofArangoDB.getLogLevel(LogLevelOptions)
-
setLogLevel
Asynchronous version ofArangoDB.setLogLevel(LogLevelEntity)
-
setLogLevel
Asynchronous version ofArangoDB.setLogLevel(LogLevelEntity, LogLevelOptions)
-
resetLogLevels
Asynchronous version ofArangoDB.resetLogLevels(LogLevelOptions)
-
getQueryOptimizerRules
CompletableFuture<Collection<QueryOptimizerRule>> getQueryOptimizerRules()Asynchronous version ofArangoDB.getQueryOptimizerRules()
-