private static class SourceNameMapper.MonitorRunnable
extends java.lang.Object
implements java.lang.Runnable
task to create a source cache entry. This identifier is used
to avoid queuing source cache entry threads for the same propath.| Modifier and Type | Field and Description |
|---|---|
private static java.util.Set<java.lang.Long> |
identifiers
Set of all identifiers for which a source cache entry task was created.
|
private java.lang.Runnable |
task
The task that needs to be executed to create a new source cache entry.
|
| Modifier | Constructor and Description |
|---|---|
private |
MonitorRunnable(java.lang.Long identifier,
java.lang.Runnable task)
Basic constructor that initializes the class members.
|
| Modifier and Type | Method and Description |
|---|---|
private static boolean |
hasIdentifier(java.lang.Long identifier)
Method that checks if the identifier provided was previously submitted.
|
private static void |
removeIdentifier(java.lang.Long identifier)
Method that clears the identifier of a source cache entry after it is created.
|
void |
run()
Override of the run method for the Runnable that only runs the task provided when instantiating
the object.
|
private static final java.util.Set<java.lang.Long> identifiers
private final java.lang.Runnable task
private MonitorRunnable(java.lang.Long identifier,
java.lang.Runnable task)
identifier - The propath hash code used by the task.task - The task that needs to be executed to create a new source cache entry.public void run()
run in interface java.lang.Runnableprivate static boolean hasIdentifier(java.lang.Long identifier)
true if there is no identifier submitted, false otherwise.private static void removeIdentifier(java.lang.Long identifier)
identifier - The identifier for the source cache entry that needs to be removed.