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

org.springframework.boot.autoconfigure.data.aerospike.AerospikeDataProperties Maven / Gradle / Ivy

/*
 * Copyright 2019 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.springframework.boot.autoconfigure.data.aerospike;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * Configuration properties for Spring Data Aerospike.
 *
 * @author Igor Ermolenko
 * @author Anastasiia Smirnova
 */
@ConfigurationProperties(prefix = "spring.data.aerospike")
@Getter
@Setter
public class AerospikeDataProperties {

    /**
     * Aerospike namespace to store data in.
     */
    private String namespace;

    /**
     * Bin name that will be used for storing entity's type.
     * 

* * @see org.springframework.data.aerospike.convert.AerospikeTypeAliasAccessor */ private String typeKey = "@_class"; /** * Gives ability to disable queries that will run scan on Aerospike server. */ private boolean scansEnabled = false; /** * Specifies fully qualified name of the FieldNamingStrategy for the entities. */ private Class fieldNamingStrategy; /** * Specifies whether to create secondary indexes for @Indexed annotated fields on application startup. */ private boolean createIndexesOnStartup = true; /** * Send user defined key in addition to hash digest on both reads and writes */ private boolean sendKey = true; /** * Automatically refresh indexes cache every seconds */ private int indexCacheRefreshSeconds = 3600; /** * Automatically refresh cached server version every seconds */ private int serverVersionRefreshSeconds = 0; /** * Limit amount of results returned by server. Non-positive value means no limit. */ private long queryMaxRecords = 10_000L; /** * Maximum batch size for batch write operations */ private int batchWriteSize = 100; /** * Define how @Id fields (primary keys) and Map keys are stored: false - always as String, * true - preserve original type if supported */ private boolean keepOriginalKeyTypes = false; }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy