[jbpm-commits] JBoss JBPM SVN: r3726 - jbpm3/trunk/modules/core/src/main/java/org/jbpm/job/executor.

do-not-reply at jboss.org do-not-reply at jboss.org
Wed Jan 28 13:06:29 EST 2009


Author: alex.guizar at jboss.com
Date: 2009-01-28 13:06:29 -0500 (Wed, 28 Jan 2009)
New Revision: 3726

Modified:
   jbpm3/trunk/modules/core/src/main/java/org/jbpm/job/executor/JobExecutor.java
Log:
restore deprecation comments, add deprecation annotations

Modified: jbpm3/trunk/modules/core/src/main/java/org/jbpm/job/executor/JobExecutor.java
===================================================================
--- jbpm3/trunk/modules/core/src/main/java/org/jbpm/job/executor/JobExecutor.java	2009-01-28 05:23:55 UTC (rev 3725)
+++ jbpm3/trunk/modules/core/src/main/java/org/jbpm/job/executor/JobExecutor.java	2009-01-28 18:06:29 UTC (rev 3726)
@@ -56,7 +56,7 @@
     }
   }
 
-  /*
+  /**
    * signals to all threads in this job executor to stop. It may be that threads are in the middle of something and they will finish that first. Use {@link
    * #stopAndJoin()} in case you want a method that blocks until all the threads are actually finished.
    * @return a list of all the stopped threads. In case no threads were stopped an empty list will be returned.
@@ -164,10 +164,11 @@
     monitoredJobIds.remove(threadName);
   }
 
-  /*
+  /**
    * @throws UnsupportedOperationException to prevent invocation
    * @deprecated <code>monitoredJobIds</code> is an internal control field
    */
+  @Deprecated
   public void setMonitoredJobIds(Map<String, Long> monitoredJobIds)
   {
     throw new UnsupportedOperationException();
@@ -193,7 +194,7 @@
     this.idleInterval = idleInterval;
   }
 
-  /*
+  /**
    * Tells whether this job executor has been {@linkplain #start() started}.
    */
   public boolean isStarted()
@@ -201,10 +202,11 @@
     return isStarted;
   }
 
-  /*
+  /**
    * @throws UnsupportedOperationException to prevent invocation
    * @deprecated <code>isStarted</code> is an internal control field
    */
+  @Deprecated
   public void setStarted(boolean isStarted)
   {
     throw new UnsupportedOperationException();
@@ -240,11 +242,19 @@
     this.name = name;
   }
 
+  /**
+   * @deprecated Replaced by {{@link #getNbrOfThreads()}
+   */
+  @Deprecated
   public int getSize()
   {
     return nbrOfThreads;
   }
 
+  /**
+   * @deprecated Replaced by {@link #setNbrOfThreads(int)}
+   */
+  @Deprecated
   public void setSize(int nbrOfThreads)
   {
     this.nbrOfThreads = nbrOfThreads;
@@ -255,10 +265,11 @@
     return threads;
   }
 
-  /*
+  /**
    * @throws UnsupportedOperationException to prevent invocation
-   * @deprecated <code>thread</code> is an internal control field
+   * @deprecated <code>threads</code> is an internal control field
    */
+  @Deprecated
   public void setThreads(Map<String, Thread> threads)
   {
     throw new UnsupportedOperationException();




More information about the jbpm-commits mailing list