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

com.github.datalking.common.NamedInheritableThreadLocal Maven / Gradle / Ivy

The newest version!
package com.github.datalking.common;

import com.github.datalking.util.Assert;

/**
 * @author yaoo on 4/25/18
 */
public class NamedInheritableThreadLocal extends InheritableThreadLocal {

    private final String name;

    public NamedInheritableThreadLocal(String name) {
        Assert.notNull(name, "Name must not be empty");
        this.name = name;
    }

    @Override
    public String toString() {
        return this.name;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy