Class RootObject

java.lang.Object
io.micronaut.microstream.rest.RootObject

public class RootObject extends Object
This object represents a root object for the MicroStream REST api.
Since:
1.0.0
Author:
Tim Yates
  • Constructor Details

    • RootObject

      public RootObject(@NonNull @NonNull String name, @NonNull @NonNull String objectId)
      Construct a root object from a name and id.
      Parameters:
      name - the name of the root object
      objectId - the id of the root object
    • RootObject

      public RootObject(@NonNull @NonNull one.microstream.storage.restadapter.types.ViewerRootDescription userRoot)
      Construct a root object from the MicroStream description.
      Parameters:
      userRoot - the root description from MicroStream
  • Method Details

    • getName

      @NonNull public @NonNull String getName()
      Returns:
      the name of the root object
    • getObjectId

      @NonNull public @NonNull String getObjectId()
      Returns:
      the id of the root object