Files
Brainstorm/Foundation Web Application/src/com/foundation/web/ThreadServiceDelegate.java

28 lines
926 B
Java
Raw Normal View History

package com.foundation.web;
import com.common.thread.ThreadService.IThreadServiceDelegate;
import com.foundation.web.interfaces.IThreadService;
public class ThreadServiceDelegate implements IThreadServiceDelegate {
private IThreadService threadService;
public ThreadServiceDelegate(IThreadService threadService) {
this.threadService = threadService;
}//ThreadServiceDelegate()//
public boolean isRunning() {
return threadService.isRunning();
}//isRunning()//
public void run(Runnable target) {
threadService.run(target);
}//run()//
public void run(Runnable target, int priority) {
threadService.run(target, priority);
}//run()//
public Thread run(Runnable target, boolean queueable) {
threadService.run(target, queueable);
return null;
}//run()//
public Thread run(Runnable target, int priority, boolean queueable) {
threadService.run(target, priority, queueable);
return null;
}//run()//
}//ThreadServiceDelegate//