public Duration availabilityETAOnLocalNode( final String id, final Instant instant )
    {
        final Archiver task = tasks.get( id );
        if (task == null )
        {
            // When a node does not have a task, it has no pending data to write to it.
            return Duration.ZERO;
        }
        else
        {
            return task.availabilityETAOnLocalNode( instant );
        }
    }
Stops and removes an existing task. No-op when the provided task is not managed by this manager.

@param id The identifier of task to be added. Cannot be null.
xmppserver/src/main/java/org/jivesoftware/openfire/archive/ArchiveManager.java