Advertisement
Hellboyandso

Java Asynchronous Thread Test Code

Apr 12th, 2017
3,465
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.38 KB | None | 0 0
  1. private List<String> historyLogging(History history){
  2.     List<String> errors = new ArrayList<String>();
  3.     new Thread(new Runnable() {
  4.         public void run() {
  5.             try {
  6.                 controllerService.history_deleteUserRole(history);
  7.             } catch (SQLException | DatabaseException e) {
  8.                 errors.add(e.getMessage());
  9.                 e.printStackTrace();
  10.             }
  11.         }
  12.     }).start();
  13.     return errors;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement