Fixed Javadoc errors for Java 8

This commit is contained in:
Peter Lawrey
2014-10-24 11:48:51 +01:00
parent ea779997cf
commit 9ace610ca5
12 changed files with 84 additions and 73 deletions
@@ -38,13 +38,13 @@ import java.util.concurrent.ConcurrentHashMap;
* shared map (using ChronicleMap) to maintain shared data across any processes
* which use a ProcessInstanceLimiter, and checking on startup and regularly
* after whether it is allowed to run.
* <p/>
*
* Typically, you need to specify two things to create an instance of
* ProcessInstanceLimiter: a path to a file that will hold the shared map; and a
* callback object (an instance implementing ProcessInstanceLimiter.Callback) to
* handle the various possible callback messages that the ProcessInstanceLimiter
* can generate.
* <p/>
*
* Once you have a ProcessInstanceLimiter instance, you specify a type of
* process (any string) which will be limited to up to N processes running at
* the same time by calling the setMaxNumberOfProcessesOfType() method. Finally
@@ -52,18 +52,18 @@ import java.util.concurrent.ConcurrentHashMap;
* startingProcessOfType(X). This last is deliberately not done automatically as
* you may wish for one type of process to define limitations on other types of
* processes.
* <p/>
*
* The are some convenience methods which allow you to quickly specify a limit
* without consideration of the above. For example, if during your application
* startup you call ProcessInstanceLimiter.limitTo(2), then you need not call
* anything else and you have limited your application to running at most 2 JVM
* instances of your application. Under the covers, this call is identical to
* the sequence:
* <p/>
*
* ProcessInstanceLimiter limiter = new ProcessInstanceLimiter();
* limiter.setMaxNumberOfProcessesOfType(processType,numProcesses);
* limiter.startingProcessOfType(processType);
* <p/>
*
* This:
* 1. Creates a shared file called ProcessInstanceLimiter_DEFAULT_SHARED_MAP_ in
* the temp directory to hold an instance of ChronicleMap
@@ -152,7 +152,7 @@ public class ProcessInstanceLimiter implements Runnable {
/**
* Convenience method.
* <p/>
*
* Create a ProcessInstanceLimiter instance which is limited to one OS
* process instance of the DEFAULT type. This will enforce that any JVM on
* the same box which runs the code
@@ -168,7 +168,7 @@ public class ProcessInstanceLimiter implements Runnable {
/**
* Convenience method.
* <p/>
*
* Create a ProcessInstanceLimiter instance which is limited to
* "numProcesses" OS process instances of the DEFAULT type. This will
* enforce that any JVM on the same box which runs the code
@@ -187,7 +187,7 @@ public class ProcessInstanceLimiter implements Runnable {
/**
* Convenience method.
* <p/>
*
* Create a ProcessInstanceLimiter instance which is limited to
* "numProcesses" OS process instances of the "processType" type. This will
* enforce that any JVM on the same box which runs the code
@@ -519,7 +519,7 @@ public class ProcessInstanceLimiter implements Runnable {
/**
* The Data object holds an array of timestamps and a maximum number of
* processes allowed to be running concurrently
* <p/>
*
* The Timelock field is just for locking the time field
*/
public static interface Data {