<commit_before>package org.openspaces.persistency.cassandra.archive;

import org.openspaces.core.GigaSpace;

public class CassandraArchiveOperationHandlerConfigurer {

	CassandraArchiveOperationHandler handler;
	private boolean initialized;
	
	public CassandraArchiveOperationHandlerConfigurer() {
		handler = new CassandraArchiveOperationHandler();
	}
	
	/**
	 * @see CassandraArchiveOperationHandler#setKeyspace(String)
	 */
	public CassandraArchiveOperationHandlerConfigurer keyspace(String keyspace) {
		handler.setKeyspace(keyspace);
		return this;
	}

	/**
	 * @see CassandraArchiveOperationHandler#setHosts(String)
	 */
	public CassandraArchiveOperationHandlerConfigurer hosts(String hosts) {
		handler.setHosts(hosts);
		return this;
	}

	/**
	 * @see CassandraArchiveOperationHandler#setPort(Integer)
	 */
	public CassandraArchiveOperationHandlerConfigurer port(int port) {
		handler.setPort(port);
		return this;
	}

	public CassandraArchiveOperationHandlerConfigurer gigaSpace(GigaSpace gigaSpace) {
		handler.setGigaSpace(gigaSpace);
		return this;
	}
	
	public CassandraArchiveOperationHandler create() {
		if (!initialized) {
			handler.afterPropertiesSet();
			initialized = true;
		}
		return handler;
	}<commit_msg>GS-10849 Added missing #writeConsistency method<commit_after>package org.openspaces.persistency.cassandra.archive;

import org.openspaces.core.GigaSpace;
import org.openspaces.persistency.cassandra.CassandraConsistencyLevel;

public class CassandraArchiveOperationHandlerConfigurer {

	CassandraArchiveOperationHandler handler;
	private boolean initialized;
	
	public CassandraArchiveOperationHandlerConfigurer() {
		handler = new CassandraArchiveOperationHandler();
	}
	
	/**
	 * @see CassandraArchiveOperationHandler#setKeyspace(String)
	 */
	public CassandraArchiveOperationHandlerConfigurer keyspace(String keyspace) {
		handler.setKeyspace(keyspace);
		return this;
	}

	/**
	 * @see CassandraArchiveOperationHandler#setHosts(String)
	 */
	public CassandraArchiveOperationHandlerConfigurer hosts(String hosts) {
		handler.setHosts(hosts);
		return this;
	}

	/**
	 * @see CassandraArchiveOperationHandler#setPort(Integer)
	 */
	public CassandraArchiveOperationHandlerConfigurer port(int port) {
		handler.setPort(port);
		return this;
	}

	/**
	 * @see CassandraArchiveOperationHandler#setWriteConsistency(CassandraConsistencyLevel)
	 */
	public CassandraArchiveOperationHandlerConfigurer writeConsistency(CassandraConsistencyLevel writeConsistency) {
		handler.setWriteConsistency(writeConsistency);
		return this;
	}
	
	/**
	 * @see CassandraArchiveOperationHandler#setGigaSpace(GigaSpace)
	 */
	public CassandraArchiveOperationHandlerConfigurer gigaSpace(GigaSpace gigaSpace) {
		handler.setGigaSpace(gigaSpace);
		return this;
	}
	
	public CassandraArchiveOperationHandler create() {
		if (!initialized) {
			handler.afterPropertiesSet();
			initialized = true;
		}
		return handler;
	}
{'fraction_non_alphanumeric': 0.08404509736932013, 'fraction_numerical': 0.0017082336863682953, 'mean_word_length': 6.247524752475248, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3115924', 'n_tokens_mistral': 932, 'n_tokens_neox': 824, 'n_words': 139}