import { createSupervisorStatus, } from '../../../../modules/supervisor-management/entities/supervisor/supervisorStatus.schema.js';
const EPOCH = new Date(0);
export class InMemorySupervisorStatusStore {
    current = createSupervisorStatus('unknown', null, EPOCH);
    read() {
        return {
            state: this.current.state,
            reason: this.current.reason,
            lastCheckedAt: new Date(this.current.lastCheckedAt.getTime()),
        };
    }
    set(status) {
        this.current = {
            state: status.state,
            reason: status.reason,
            lastCheckedAt: new Date(status.lastCheckedAt.getTime()),
        };
    }
}
//# sourceMappingURL=supervisorStatusStore.memory.gateway.js.map