Package io.ryos.rhino.sdk.data
Class ContextImpl
- java.lang.Object
-
- io.ryos.rhino.sdk.data.ContextImpl
-
- All Implemented Interfaces:
Context
- Direct Known Subclasses:
SimulationSession
,UserSessionImpl
public class ContextImpl extends java.lang.Object implements Context
-
-
Constructor Summary
Constructors Constructor Description ContextImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Context
add(java.lang.String key, java.lang.Object value)
Puts a new key - value pair to the context.void
commit(java.lang.String status)
void
empty()
Empties the context.<T> java.util.Optional<T>
get(java.lang.String key)
Reclaims the object from the context.boolean
isEmpty()
Checks whether the context is empty.void
notify(long time)
void
register(Measurement measurement)
void
remove(Measurement measurement)
-
-
-
Method Detail
-
add
public Context add(java.lang.String key, java.lang.Object value)
Description copied from interface:Context
Puts a new key - value pair to the context.
-
get
public <T> java.util.Optional<T> get(java.lang.String key)
Description copied from interface:Context
Reclaims the object from the context.
-
empty
public void empty()
Description copied from interface:Context
Empties the context.
-
isEmpty
public boolean isEmpty()
Description copied from interface:Context
Checks whether the context is empty.
-
register
public void register(Measurement measurement)
-
remove
public void remove(Measurement measurement)
-
-