All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.lambda.crac.Core Maven / Gradle / Ivy

The newest version!
/*
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/

package com.amazonaws.services.lambda.crac;

/**
 * Provides the global context for registering resources.
 */
public final class Core {

    private static Context globalContext = new ContextImpl();

    private Core() {
    }

    public static Context getGlobalContext() {
        return globalContext;
    }

    public static void checkpointRestore() {
        throw new UnsupportedOperationException();
    }

    static void resetGlobalContext() {
        globalContext = new ContextImpl();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy