Package io.ray.api

Interface ObjectRef<T>

Type Parameters:
T - The object type.

public interface ObjectRef<T>
Represents a reference to an object in the object store.
  • Method Summary

    Modifier and Type
    Method
    Description
    get()
    Fetch the object from the object store, this method will block until the object is locally available.
    get​(long timeoutMs)
    Fetch the object from the object store, this method will block until the object is locally available.
  • Method Details

    • get

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

      T get(long timeoutMs)
      Fetch the object from the object store, this method will block until the object is locally available.
      Parameters:
      timeoutMs - The maximum amount of time in miliseconds to wait before returning.
      Throws:
      RayTimeoutException - If it's timeout to get the object.