Package com.arangodb.internal
Class ArangoDBAsyncImpl
java.lang.Object
com.arangodb.internal.ArangoExecuteable
com.arangodb.internal.InternalArangoDB
com.arangodb.internal.ArangoDBAsyncImpl
- All Implemented Interfaces:
ArangoDBAsync
,ArangoSerdeAccessor
- Author:
- Mark Vollmary, Heiko Kernbach, Michele Rastelli
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateDatabase
(DBCreateOptions options) Asynchronous version ofArangoDB.createDatabase(DBCreateOptions)
createDatabase
(String dbName) 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 class com.arangodb.internal.InternalArangoDB
createDatabaseRequest, createDatabaseResponseDeserializer, createUserRequest, deleteUserRequest, executeRequest, getAccessibleDatabasesForRequest, getAccessibleDatabasesForResponseDeserializer, getDatabaseResponseDeserializer, getDatabasesRequest, getLogEntriesRequest, getLogLevelRequest, getQueryOptimizerRulesRequest, getRoleRequest, getRoleResponseDeserializer, getServerIdRequest, getServerIdResponseDeserializer, getUserRequest, getUsersRequest, getUsersResponseDeserializer, replaceUserRequest, resetLogLevelsRequest, responseDeserializer, setLogLevelRequest, updateUserDefaultCollectionAccessRequest, updateUserDefaultDatabaseAccessRequest, updateUserRequest
Methods inherited from class com.arangodb.internal.ArangoExecuteable
createPath, executorAsync, executorSync, getSerde, request
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.arangodb.ArangoSerdeAccessor
getSerde
-
Constructor Details
-
ArangoDBAsyncImpl
-
-
Method Details
-
shutdown
public void shutdown()Description copied from interface:ArangoDBAsync
Releases all connections to the server and clear the connection pool.- Specified by:
shutdown
in interfaceArangoDBAsync
-
updateJwt
Description copied from interface:ArangoDBAsync
Updates the JWT used for requests authorization. It does not change already existing VST connections, since VST connections are authenticated during the initialization phase.- Specified by:
updateJwt
in interfaceArangoDBAsync
- Parameters:
jwt
- token to use
-
db
Description copied from interface:ArangoDBAsync
Returns aArangoDatabase
instance for the_system
database.- Specified by:
db
in interfaceArangoDBAsync
- Returns:
- database handler
-
db
Description copied from interface:ArangoDBAsync
Returns aArangoDatabase
instance for the given database name.- Specified by:
db
in interfaceArangoDBAsync
- Parameters:
dbName
- Name of the database- Returns:
- database handler
-
metrics
- Specified by:
metrics
in interfaceArangoDBAsync
- Returns:
- entry point for accessing client metrics
-
createDatabase
Description copied from interface:ArangoDBAsync
Asynchronous version ofArangoDB.createDatabase(String)
- Specified by:
createDatabase
in interfaceArangoDBAsync
-
createDatabase
Description copied from interface:ArangoDBAsync
Asynchronous version ofArangoDB.createDatabase(DBCreateOptions)
- Specified by:
createDatabase
in interfaceArangoDBAsync
-
getDatabases
Description copied from interface:ArangoDBAsync
Asynchronous version ofArangoDB.getDatabases()
- Specified by:
getDatabases
in interfaceArangoDBAsync
-
getAccessibleDatabases
Description copied from interface:ArangoDBAsync
Asynchronous version ofArangoDB.getAccessibleDatabases()
- Specified by:
getAccessibleDatabases
in interfaceArangoDBAsync
-
getAccessibleDatabasesFor
Description copied from interface:ArangoDBAsync
Asynchronous version ofArangoDB.getAccessibleDatabasesFor(String)
- Specified by:
getAccessibleDatabasesFor
in interfaceArangoDBAsync
-
getVersion
Description copied from interface:ArangoDBAsync
Asynchronous version ofArangoDB.getVersion()
- Specified by:
getVersion
in interfaceArangoDBAsync
-
getEngine
Description copied from interface:ArangoDBAsync
Asynchronous version ofArangoDB.getEngine()
- Specified by:
getEngine
in interfaceArangoDBAsync
-
getRole
Description copied from interface:ArangoDBAsync
Asynchronous version ofArangoDB.getRole()
- Specified by:
getRole
in interfaceArangoDBAsync
-
getServerId
Description copied from interface:ArangoDBAsync
Asynchronous version ofArangoDB.getServerId()
- Specified by:
getServerId
in interfaceArangoDBAsync
-
createUser
Description copied from interface:ArangoDBAsync
Asynchronous version ofArangoDB.createUser(String, String)
- Specified by:
createUser
in interfaceArangoDBAsync
-
createUser
public CompletableFuture<UserEntity> createUser(String user, String passwd, UserCreateOptions options) Description copied from interface:ArangoDBAsync
Asynchronous version ofArangoDB.createUser(String, String, UserCreateOptions)
- Specified by:
createUser
in interfaceArangoDBAsync
-
deleteUser
Description copied from interface:ArangoDBAsync
Asynchronous version ofArangoDB.deleteUser(String)
- Specified by:
deleteUser
in interfaceArangoDBAsync
-
getUser
Description copied from interface:ArangoDBAsync
Asynchronous version ofArangoDB.getUser(String)
- Specified by:
getUser
in interfaceArangoDBAsync
-
getUsers
Description copied from interface:ArangoDBAsync
Asynchronous version ofArangoDB.getUsers()
- Specified by:
getUsers
in interfaceArangoDBAsync
-
updateUser
Description copied from interface:ArangoDBAsync
Asynchronous version ofArangoDB.updateUser(String, UserUpdateOptions)
- Specified by:
updateUser
in interfaceArangoDBAsync
-
replaceUser
Description copied from interface:ArangoDBAsync
Asynchronous version ofArangoDB.replaceUser(String, UserUpdateOptions)
- Specified by:
replaceUser
in interfaceArangoDBAsync
-
grantDefaultDatabaseAccess
Description copied from interface:ArangoDBAsync
Asynchronous version ofArangoDB.grantDefaultDatabaseAccess(String, Permissions)
- Specified by:
grantDefaultDatabaseAccess
in interfaceArangoDBAsync
-
grantDefaultCollectionAccess
Description copied from interface:ArangoDBAsync
Asynchronous version ofArangoDB.grantDefaultCollectionAccess(String, Permissions)
- Specified by:
grantDefaultCollectionAccess
in interfaceArangoDBAsync
-
execute
Description copied from interface:ArangoDBAsync
Asynchronous version ofArangoDB.execute(Request, Class)
- Specified by:
execute
in interfaceArangoDBAsync
-
getLogEntries
Description copied from interface:ArangoDBAsync
Asynchronous version ofArangoDB.getLogEntries(LogOptions)
- Specified by:
getLogEntries
in interfaceArangoDBAsync
-
getLogLevel
Description copied from interface:ArangoDBAsync
Asynchronous version ofArangoDB.getLogLevel()
- Specified by:
getLogLevel
in interfaceArangoDBAsync
-
getLogLevel
Description copied from interface:ArangoDBAsync
Asynchronous version ofArangoDB.getLogLevel(LogLevelOptions)
- Specified by:
getLogLevel
in interfaceArangoDBAsync
-
setLogLevel
Description copied from interface:ArangoDBAsync
Asynchronous version ofArangoDB.setLogLevel(LogLevelEntity)
- Specified by:
setLogLevel
in interfaceArangoDBAsync
-
setLogLevel
public CompletableFuture<LogLevelEntity> setLogLevel(LogLevelEntity entity, LogLevelOptions options) Description copied from interface:ArangoDBAsync
Asynchronous version ofArangoDB.setLogLevel(LogLevelEntity, LogLevelOptions)
- Specified by:
setLogLevel
in interfaceArangoDBAsync
-
resetLogLevels
Description copied from interface:ArangoDBAsync
Asynchronous version ofArangoDB.resetLogLevels(LogLevelOptions)
- Specified by:
resetLogLevels
in interfaceArangoDBAsync
-
getQueryOptimizerRules
Description copied from interface:ArangoDBAsync
Asynchronous version ofArangoDB.getQueryOptimizerRules()
- Specified by:
getQueryOptimizerRules
in interfaceArangoDBAsync
-