Interface FlowContext
-
- All Superinterfaces:
Disposable,Map<String,Object>
public interface FlowContext extends Map<String,Object>, Disposable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancontains(String key)Checks whether the context contains a value with the given key.voidregister(Disposable disposable)Registers a disposable object in the context so that it can be disposed when the flow execution ends.-
Methods inherited from interface de.codecentric.reedelk.runtime.api.flow.Disposable
dispose
-
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
-
-
-
Method Detail
-
contains
boolean contains(String key)
Checks whether the context contains a value with the given key.- Parameters:
key- the key to be checked for existence in the context.- Returns:
- true if exists a value mapped to the given key in the context, false otherwise.
-
register
void register(Disposable disposable)
Registers a disposable object in the context so that it can be disposed when the flow execution ends. This might be used to cleanup Database cursors or other resources which needs to stay open across the whole flow execution.- Parameters:
disposable- the object to be disposed when the flow ends.
-
-