import BufferManagerWorker from "./BufferManagerWorker"; import AgentConfig from "../common/data/AgentConfig"; import APISample from "../common/data/APISample"; import ApiBufferKey from "./ApiBufferKey"; class NoOpBufferManagerWorker extends BufferManagerWorker { config: AgentConfig = AgentConfig.noOpAgentConfig; constructor() { super(null, null); } init(): boolean { return true; } canOffer(key: ApiBufferKey | K): boolean { return false; } offer(key: ApiBufferKey | K, apiSample: APISample): boolean { return false; } offerByKey(key: K, apiSample: APISample): boolean { return false; } canOfferByKey(key: K): boolean { return false; } getOperatingConfig(): AgentConfig | null { return this.config; } offerByApiBufferKey( apiBufferKey: ApiBufferKey, apiSample: APISample ): boolean { return false; } canOfferByApiBufferKey(apiBufferKey: ApiBufferKey): boolean { return false; } shutdown(): boolean { return true; } syncForKey(key: ApiBufferKey) { return; } } export default NoOpBufferManagerWorker;