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

com.wizzardo.http.utils.StringBuilderThreadLocalHolder Maven / Gradle / Ivy

package com.wizzardo.http.utils;

import com.wizzardo.tools.misc.ExceptionDrivenStringBuilder;
import com.wizzardo.tools.misc.SoftThreadLocal;

/**
 * Created by wizzardo on 16.01.15.
 */
public class StringBuilderThreadLocalHolder {

    protected final SoftThreadLocal stringBuilder = new SoftThreadLocal<>(
            ExceptionDrivenStringBuilder::new,
            ExceptionDrivenStringBuilder::clear
    );

    public ExceptionDrivenStringBuilder get() {
        return stringBuilder.getValue();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy