Skip to content

Commit cb9c000

Browse files
author
mpv1989
committed
added ArangoDBAsync.getRole()
1 parent 253b98d commit cb9c000

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/main/java/com/arangodb/ArangoDBAsync.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
import com.arangodb.entity.ArangoDBVersion;
3535
import com.arangodb.entity.LogEntity;
3636
import com.arangodb.entity.LogLevelEntity;
37+
import com.arangodb.entity.ServerRole;
3738
import com.arangodb.entity.UserEntity;
3839
import com.arangodb.internal.ArangoDBConstants;
3940
import com.arangodb.internal.ArangoExecutorAsync;
@@ -461,6 +462,15 @@ public CompletableFuture<ArangoDBVersion> getVersion() {
461462
return db().getVersion();
462463
}
463464

465+
/**
466+
* Returns the server role.
467+
*
468+
* @return the server role
469+
*/
470+
public CompletableFuture<ServerRole> getRole() {
471+
return executor.execute(getRoleRequest(), getRoleResponseDeserializer());
472+
}
473+
464474
/**
465475
* Create a new user. This user will not have access to any database. You need permission to the _system database in
466476
* order to execute this call.

0 commit comments

Comments
 (0)