package com.eactive.eai.common.inflow;

public interface Bucket {
	public boolean isAdapterPass(String adapter);
	public boolean isInterfacePass(String inter);
	public InflowTargetVO getAdapterInflowThreashold(String adapter);
	public InflowTargetVO getInterfaceInflowThreashold(String inter);
	public InflowTargetVO getInflowThreashold(String inter);

	// 그룹 관련 메서드
	/** @return null이면 통과, "PER_SECOND" 또는 "THRESHOLD"면 해당 버킷에서 차단 */
	public String isGroupPass(String groupId);
	public InflowGroupVO getGroupInflowThreshold(String groupId);
	public String getGroupIdByInterface(String interfaceId);
}
