Modified ThreadService & Scheduler to allow the web server to pass a delegate service such that all webapps will use one service for each function (reduction in threading and debug complexity).
This commit is contained in:
@@ -79,7 +79,7 @@ public class ModelListener {
|
||||
/* (non-Javadoc)
|
||||
* @see com.common.thread.Scheduler.Task#evaluate()
|
||||
*/
|
||||
public void evaluate() {
|
||||
public void run() {
|
||||
Binding.ObjectReference reference = null;
|
||||
|
||||
//Remove all bindings for objects no longer in memory.//
|
||||
|
||||
@@ -473,7 +473,7 @@ protected void initialize(RepositoryMetadata repositoryMetadata, IObjectAccess o
|
||||
getDriverClass();
|
||||
|
||||
Scheduler.addTask(600000, resourceCleanupTask = new Scheduler.Task() {
|
||||
public void evaluate() {
|
||||
public void run() {
|
||||
synchronized(JdbcRepositoryManager.this) {
|
||||
long timestamp = System.currentTimeMillis();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user