@atomist/automation-client
Version:
Atomist API for software low-level client
22 lines • 834 B
TypeScript
import { EventStore } from "../../spi/event/EventStore";
import { CommandIncoming, EventIncoming } from "../transport/RequestProcessor";
/**
* Simple {EventStore} implementation that stores events in memory.
*/
export declare class InMemoryEventStore implements EventStore {
private eventCache;
private commandCache;
private messageCache;
private eventSer;
private commandSer;
constructor();
recordEvent(event: EventIncoming): string;
recordCommand(command: CommandIncoming): string;
recordMessage(id: string, correlationId: string, message: any): string;
events(from?: number): any[];
eventSeries(): [number[], number[]];
commands(from?: number): any[];
commandSeries(): [number[], number[]];
messages(from?: number): any[];
}
//# sourceMappingURL=InMemoryEventStore.d.ts.map