package ch.unisg.executorpool.adapter.out.persistence.mongodb;

import java.util.List;

import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface ExecutorRepository extends MongoRepository<MongoExecutorDocument, String> {

    public MongoExecutorDocument findByExecutorUri(String executorUri, String executorTaskType);

    public List<MongoExecutorDocument> findByExecutorTaskType(String executorTaskType);
    
}
