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

io.deephaven.engine.table.impl.replay.ReplayerHandle Maven / Gradle / Ivy

There is a newer version: 0.37.1
Show newest version
/**
 * Copyright (c) 2016-2022 Deephaven Data Labs and Patent Pending
 */
package io.deephaven.engine.table.impl.replay;

import java.io.Serializable;

/**
 * A handle to a replayer.
 */
public interface ReplayerHandle extends Serializable {
    /**
     * Gets the replayer.
     *
     * @return replayer
     */
    Replayer getReplayer();

    /**
     * A handle to a replayer, where the replayer and handle exist in the same JVM instance.
     */
    public static class Local implements ReplayerHandle {
        private final Replayer replayer;

        /**
         * Create a new handle.
         *
         * @param replayer replayer
         */
        public Local(Replayer replayer) {
            this.replayer = replayer;
        }

        @Override
        public Replayer getReplayer() {
            return replayer;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy