All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.eightkdata.mongowp.mongoserver.api.commands.CommandRequest Maven / Gradle / Ivy


package com.eightkdata.mongowp.mongoserver.api.commands;

import com.google.common.base.Preconditions;
import io.netty.util.AttributeMap;
import javax.annotation.Nonnull;

/**
 *
 */
public class CommandRequest {

    private final String database;
    private final AttributeMap attributes;

    protected CommandRequest(
            @Nonnull String database, 
            @Nonnull AttributeMap attributes) {
        Preconditions.checkArgument(database != null);
        Preconditions.checkArgument(attributes != null);
        this.database = database;
        this.attributes = attributes;
    }

    public String getDatabase() {
        return database;
    }

    public AttributeMap getAttributes() {
        return attributes;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy