1 23 24 package com.rift.coad.lib.thread; 25 26 import com.rift.coad.lib.security.UserSession; 28 29 34 public class ThreadInfo { 35 36 private long threadId = 0; 38 private Class threadClass = null; 39 private UserSession user = null; 40 private Thread.State state = null; 41 private String info = null; 42 43 51 public ThreadInfo(long threadId, Class threadClass, UserSession user, 52 Thread.State state, String info) { 53 this.threadId = threadId; 54 this.threadClass = threadClass; 55 this.user = user; 56 this.state = state; 57 this.info = info; 58 } 59 60 61 66 public long getThreadId() { 67 return threadId; 68 } 69 70 71 76 public Class getThreadClass() { 77 return threadClass; 78 } 79 80 81 86 public UserSession getUser() { 87 return user; 88 } 89 90 91 97 public Thread.State getState() { 98 return state; 99 } 100 101 102 107 public String getInfo() { 108 return info; 109 } 110 } 111 | Popular Tags |