public interface StorageWithLifecycleFlags<I,M extends com.google.protobuf.Message,R extends ReadRequest<I>> extends Storage<I,M,R>
Modifier and Type | Method and Description |
---|---|
java.util.Optional<io.spine.server.entity.LifecycleFlags> |
readLifecycleFlags(I id)
Reads the lifecycle status for the entity with the passed ID.
|
void |
writeLifecycleFlags(I id,
io.spine.server.entity.LifecycleFlags flags)
Writes the lifecycle status for the entity with the passed ID.
|
java.util.Optional<io.spine.server.entity.LifecycleFlags> readLifecycleFlags(I id)
This method returns Optional.empty()
if none of the
flags were set before.
id
- the ID of the entityOptional.empty()
void writeLifecycleFlags(I id, io.spine.server.entity.LifecycleFlags flags)
id
- the ID of the entity for which to update the statusflags
- the status to write