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

org.opensearch.migrations.replay.datahandlers.PayloadNotLoadedException Maven / Gradle / Ivy

There is a newer version: 0.2.0.4
Show newest version
package org.opensearch.migrations.replay.datahandlers;

/**
 * This class is used to throw in LazyLoadingPayloadMap when the json payload has yet to be loaded.
 * We need to use an exception to trigger control flow since an end-user's json transformation
 * may be the thing that tries to access that key.  Think of this as being a page-fault for a
 * specific key.
 */
public class PayloadNotLoadedException extends RuntimeException {
    // TODO - investigate if it makes sense to store these in a ThreadLocal and reuse them
    public static PayloadNotLoadedException getInstance() {
        return new PayloadNotLoadedException();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy