Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated AsyncDisruptorAppender.threadNamePrefix #541

Merged
merged 1 commit into from
Jun 26, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -531,34 +531,6 @@ protected void setThreadPoolCoreSize(int threadPoolCoreSize) {
this.threadPoolCoreSize = threadPoolCoreSize;
}

/**
* @deprecated use {@link #getThreadNameFormat()}
*/
@Deprecated
public String getThreadNamePrefix() {
if (this.threadNameFormat != null && this.threadNameFormat.endsWith(THREAD_INDEX_FORMAT)) {
/*
* Try to return the old-style threadNamePrefix
*/
return this.threadNameFormat.substring(0, this.threadNameFormat.length() - THREAD_INDEX_FORMAT.length());
}
/*
* Otherwise, just default to return the regular format
*/
return threadNameFormat;
}

/**
* This is the old way to customize thread names.
*
* @param threadNamePrefix
* @deprecated use {@link #setThreadNameFormat(String)} instead.
*/
@Deprecated
public void setThreadNamePrefix(String threadNamePrefix) {
setThreadNameFormat(threadNamePrefix + THREAD_INDEX_FORMAT);
}

public String getThreadNameFormat() {
return threadNameFormat;
}
Expand Down