pl.allegro.tech.hermes.management.domain.retransmit.DeleteOfflineRetransmissionTaskCommand Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hermes-management Show documentation
Show all versions of hermes-management Show documentation
Fast and reliable message broker built on top of Kafka.
package pl.allegro.tech.hermes.management.domain.retransmit;
import pl.allegro.tech.hermes.management.domain.dc.DatacenterBoundRepositoryHolder;
import pl.allegro.tech.hermes.management.domain.dc.RepositoryCommand;
class DeleteOfflineRetransmissionTaskCommand
extends RepositoryCommand {
private final String taskId;
DeleteOfflineRetransmissionTaskCommand(String taskId) {
this.taskId = taskId;
}
@Override
public void backup(DatacenterBoundRepositoryHolder holder) {}
@Override
public void execute(DatacenterBoundRepositoryHolder holder) {
holder.getRepository().deleteTask(taskId);
}
@Override
public void rollback(
DatacenterBoundRepositoryHolder holder,
Exception exception) {}
@Override
public Class getRepositoryType() {
return OfflineRetransmissionRepository.class;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy