public static void addCompleter ( BiConsumer < Map < Object , Object > , Long > completer ) { Thread currentThread = Thread . currentThread ( ) ; if ( currentThread instanceof TaggableThread ) { TaggableThread taggableThread = ( TaggableThread ) currentThread ; taggableThread . addMe ( completer ) ; } }
Add a completer whose parameters are tag map and elapsed time in milliseconds . After thread run completers are called .