static ThreadFactory createThreadFactoryBuilder ( final String baseName , final String componentName ) { StringBuilder buf = new StringBuilder ( "ACP:" ) ; if ( ! Strings . isNullOrEmpty ( baseName ) ) { buf . append ( baseName ) . append ( ":" ) . append ( componentName ) ; } else { buf . append ( componentName ) ; } buf . append ( "-Thread-%d" ) ; return new ThreadFactoryBuilder ( ) . setNameFormat ( buf . toString ( ) ) . build ( ) ; }
Creates a thread factory builder .