public class MapsIndexer<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
extends java.lang.Object
MapsIndex for the maps directory. Changed maps are
tracked and the index is updated.| Constructor and Description |
|---|
MapsIndexer(MapsIndex mapsIndex,
MapManager<G,A,R> mapManager,
ProjectSettings projectSettings)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
start()
Starts indexing.
|
void |
stop()
Stops indexing.
|
void |
waitForIdle()
Blocks the calling thread until all pending maps have been indexed.
|
public MapsIndexer(@NotNull
MapsIndex mapsIndex,
@NotNull
MapManager<G,A,R> mapManager,
@NotNull
ProjectSettings projectSettings)
mapsIndex - the maps index to updatemapManager - the map manager for loading map filesprojectSettings - the project settings instance; defines the indexed
maps directorypublic void start()
public void stop()
throws java.lang.InterruptedException
start() has been called.java.lang.InterruptedException - if the current thread was interruptedpublic void waitForIdle()
throws java.lang.InterruptedException
java.lang.InterruptedException - if the current thread was interrupted during
wait