All Downloads are FREE. Search and download functionalities are using the official Maven repository.

info.archinnov.achilles.internal.async.EntitiesWithExecutionInfo Maven / Gradle / Ivy

There is a newer version: 6.1.0
Show newest version
package info.archinnov.achilles.internal.async;

import com.datastax.driver.core.ExecutionInfo;
import info.archinnov.achilles.query.typed.EntitiesWithPagingState;

import java.util.List;

public class EntitiesWithExecutionInfo {

    private final List entities;
    private final ExecutionInfo executionInfo;

    public EntitiesWithExecutionInfo(List entities, ExecutionInfo executionInfo) {
        this.entities = entities;
        this.executionInfo = executionInfo;
    }

    public List getEntities() {
        return entities;
    }

    public ExecutionInfo getExecutionInfo() {
        return executionInfo;
    }

    public EntitiesWithPagingState toEntitiesWithPagingState() {
        return new EntitiesWithPagingState<>(entities, executionInfo.getPagingState());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy