You are currently browsing legacy 4.0 version of documentation. Click here to switch to the newest 5.1 version.

We can help you with migration to the latest RavenDB

Contact Us Now
see on GitHub

Operations: How to Get Client Configuration

GetClientConfigurationOperation is used to return a client configuration, which is saved on the server and overrides client behavior.



public static class Result {
    private long etag;
    private ClientConfiguration configuration;

    public long getEtag() {
        return etag;

    public void setEtag(long etag) {
        this.etag = etag;

    public ClientConfiguration getConfiguration() {
        return configuration;

    public void setConfiguration(ClientConfiguration configuration) {
        this.configuration = configuration;
Return Value
Etag String Etag of configuration
Configuration ClientConfiguration configuration which will be used by the client API


GetClientConfigurationOperation.Result config
    = store.maintenance().send(new GetClientConfigurationOperation());
ClientConfiguration clientConfiguration = config.getConfiguration();