silentbalanceyh/vertx-zero

View on GitHub
vertx-pin/zero-battery/src/main/java/cn/vertxup/battery/service/BlockStub.java

Summary

Maintainability
A
0 mins
Test Coverage
package cn.vertxup.battery.service;

import cn.vertxup.battery.domain.tables.pojos.BBlock;
import io.vertx.core.Future;
import io.vertx.core.json.JsonArray;
import io.vertx.core.json.JsonObject;

import java.util.List;
import java.util.Set;
import java.util.concurrent.ConcurrentMap;

/**
 * @author <a href="http://www.origin-x.cn">Lang</a>
 */
public interface BlockStub {

    Future<ConcurrentMap<String, JsonArray>> fetchByApp(String appId);

    Future<ConcurrentMap<String, JsonArray>> fetchByBag(Set<String> bagIds);

    Future<JsonArray> fetchByBag(String bagId);

    Future<JsonObject> saveParameters(List<BBlock> blocks, JsonObject data);
}