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, stop
public void initialize(XMPPServer server)
initialize
in interface Module
initialize
in class BasicModule
server
- the server hosting this module.public void destroy()
destroy
in interface Module
destroy
in class BasicModule
public 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.