net.sourceforge.domian.util.concurrent.task
Class RepositoryTask<T extends Entity>

java.lang.Object
  extended by net.sourceforge.domian.util.slf4j.AbstractLoggingObject
      extended by net.sourceforge.domian.util.concurrent.task.Task
          extended by net.sourceforge.domian.util.concurrent.task.RepositoryTask<T>
All Implemented Interfaces:
java.lang.Runnable

public abstract class RepositoryTask<T extends Entity>
extends Task

Abstract super class for tasks to be executed by a ConcurrentRepositoryTaskExecutor.

Since:
0.4
Author:
Eirik Torske

Field Summary
protected  Repository<T> repository
           
 
Fields inherited from class net.sourceforge.domian.util.concurrent.task.Task
barrier, threadNumber, threadNumberGenerator
 
Constructor Summary
RepositoryTask()
           
RepositoryTask(Repository<T> repository)
           
 
Method Summary
 void setRepository(Repository<T> repository)
           
 
Methods inherited from class net.sourceforge.domian.util.concurrent.task.Task
doConcurrentTask, resetThreadNumber, run, setBarrier
 
Methods inherited from class net.sourceforge.domian.util.slf4j.AbstractLoggingObject
getLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

repository

protected Repository<T extends Entity> repository
Constructor Detail

RepositoryTask

public RepositoryTask()

RepositoryTask

public RepositoryTask(Repository<T> repository)
Method Detail

setRepository

public void setRepository(Repository<T> repository)


Copyright © 2006-2009. All Rights Reserved.