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

io.ray.api.ObjectRef Maven / Gradle / Ivy

There is a newer version: 2.36.0
Show newest version
package io.ray.api;

/**
 * Represents a reference to an object in the object store.
 *
 * @param  The object type.
 */
public interface ObjectRef {

  /**
   * Fetch the object from the object store, this method will block until the object is locally
   * available.
   */
  T get();

  /**
   * Fetch the object from the object store, this method will block until the object is locally
   * available.
   *
   * @param timeoutMs The maximum amount of time in miliseconds to wait before returning.
   * @throws RayTimeoutException If it's timeout to get the object.
   */
  T get(long timeoutMs);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy