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

pl.touk.cxf.interceptors.threadname.policy.ThreadNamePrefixPolicy Maven / Gradle / Ivy

There is a newer version: 1.3.0
Show newest version
package pl.touk.cxf.interceptors.threadname.policy;

import lombok.AllArgsConstructor;
import pl.touk.cxf.interceptors.threadname.ThreadNamePolicy;

@AllArgsConstructor
public class ThreadNamePrefixPolicy implements ThreadNamePolicy {

    private final String threadNamePrefix;

    public ThreadNamePrefixPolicy() {
        this("cxf-");
    }

    public String apply(String oldName) {
        return threadNamePrefix + oldName;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy