public class DefaultTransientStore extends Object implements TransientStore
| Constructor and Description |
|---|
DefaultTransientStore() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
get(String name)
A value associated with the variable in the transient store.
|
Set<String> |
getVariables()
Set of all the variables.
|
void |
increment(TransientVariableScope scope,
String name,
long value)
Increments a value of the variable.
|
void |
reset(TransientVariableScope scope)
Resets the state of this store.
|
void |
set(TransientVariableScope scope,
String name,
Object value)
Sets the value of the object for variable named 'name'.
|
public void increment(TransientVariableScope scope, String name, long value)
increment in interface TransientStorename - of the variable.value - associated with the variable.public Set<String> getVariables()
getVariables in interface TransientStorepublic void reset(TransientVariableScope scope)
reset in interface TransientStorepublic <T> T get(String name)
get in interface TransientStorename - of the variable to be retrieved.public void set(TransientVariableScope scope, String name, Object value)
set in interface TransientStorename - of the variable for which the value needs to be set.value - of the variable.Copyright © 2024 CDAP Licensed under the Apache License, Version 2.0.