org.zalando.nakadiproducer.eventlog.impl.EventLogRepository Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nakadi-producer Show documentation
Show all versions of nakadi-producer Show documentation
Reliable transactional Nakadi event producer
package org.zalando.nakadiproducer.eventlog.impl;
import java.time.Instant;
import java.util.Collection;
public interface EventLogRepository {
Collection findByLockedByAndLockedUntilGreaterThan(String lockedBy, Instant lockedUntil);
void lockSomeMessages(String lockId, Instant now, Instant lockExpires);
void delete(EventLog eventLog);
void persist(EventLog eventLog);
void deleteAll();
EventLog findOne(Integer id);
}