KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > smartlib > pool > core > ThreadContext


1 package org.smartlib.pool.core;
2
3 /**
4  * This class will store the information related to the thread context
5  */

6 public class ThreadContext {
7
8     private String JavaDoc poolName;
9     private long createdTimeStamp;
10
11     public ThreadContext() {
12         createdTimeStamp = System.currentTimeMillis();
13     }
14
15     public long getCreatedTimeStamp() {
16         return createdTimeStamp;
17     }
18
19     public void setCreatedTimeStamp(long createdTimeStamp) {
20         this.createdTimeStamp = createdTimeStamp;
21     }
22
23     public String JavaDoc getPoolName() {
24         return poolName;
25     }
26
27     public void setPoolName(String JavaDoc poolName) {
28         this.poolName = poolName;
29     }
30
31 }
32
Popular Tags