public class ArchiveManager extends BasicModule
| Constructor and Description |
|---|
ArchiveManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Archiver archiver)
Adds a new task, that is started immediately.
|
Duration |
availabilityETAOnLocalNode(String id,
Instant instant) |
void |
destroy()
Destroys the module, by shutting down the thread pool that is being used to process archiving tasks.
|
void |
initialize(XMPPServer server)
Initializes the manager, by instantiating a thread pool that is used to process archiving tasks.
|
void |
remove(Archiver archiver)
Stops and removes an exiting task.
|
void |
remove(String id)
Stops and removes an exiting task.
|
getName, start, stoppublic void initialize(XMPPServer server)
initialize in interface Moduleinitialize in class BasicModuleserver - the server hosting this module.public void destroy()
destroy in interface Moduledestroy in class BasicModulepublic void add(Archiver archiver)
archiver - The task to be added. Cannot be null.public void remove(Archiver archiver)
archiver - The task to be added. Cannot be null.public void remove(String id)
id - The identifier of task to be added. Cannot be null.Copyright © 2003–2019 Ignite Realtime. All rights reserved.