/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  org.springframework.context.ApplicationEvent
 *  org.springframework.context.ApplicationListener
 *  org.springframework.core.Ordered
 */
package com.l7tech.server;

import com.l7tech.server.event.system.ReadyForMessages;
import java.util.concurrent.atomic.AtomicBoolean;
import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.core.Ordered;

public class GatewayState
implements ApplicationListener,
Ordered {
    private final AtomicBoolean a = new AtomicBoolean(false);

    public boolean isReadyForMessages() {
        return this.a.get();
    }

    public void onApplicationEvent(ApplicationEvent applicationEvent) {
        if (applicationEvent instanceof ReadyForMessages) {
            this.a.set(true);
        }
    }

    public int getOrder() {
        return -10000;
    }
}

