Package io.micronaut.microstream.rest
Class RootObject
java.lang.Object
io.micronaut.microstream.rest.RootObject
This object represents a root object for the MicroStream REST api.
- Since:
- 1.0.0
- Author:
- Tim Yates
-
Constructor Summary
ConstructorDescriptionRootObject
(@NonNull String name, @NonNull String objectId) Construct a root object from a name and id.RootObject
(@NonNull one.microstream.storage.restadapter.types.ViewerRootDescription userRoot) Construct a root object from the MicroStream description. -
Method Summary
-
Constructor Details
-
RootObject
Construct a root object from a name and id.- Parameters:
name
- the name of the root objectobjectId
- 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
- Returns:
- the name of the root object
-
getObjectId
- Returns:
- the id of the root object
-