io.imunity.furms.site.api.AgentPendingMessageSiteService Maven / Gradle / Ivy
/*
* Copyright (c) 2020 Bixbit s.c. All rights reserved.
* See LICENSE file for licensing information.
*/
package io.imunity.furms.site.api;
import io.imunity.furms.domain.project_allocation_installation.ErrorMessage;
import io.imunity.furms.domain.site_agent.CorrelationId;
import io.imunity.furms.domain.site_agent_pending_messages.SiteAgentPendingMessage;
import java.util.Optional;
public interface AgentPendingMessageSiteService {
Optional find(CorrelationId correlationId);
void create(SiteAgentPendingMessage message);
void setAsAcknowledged(CorrelationId id);
void updateErrorMessage(CorrelationId id, ErrorMessage errorMessage);
void delete(CorrelationId id);
}