Package org.burningwave.graph
Class Context.Simple
java.lang.Object
org.burningwave.graph.Context.Abst
org.burningwave.graph.Context.Simple
- All Implemented Interfaces:
Serializable,AutoCloseable,org.burningwave.core.Component,org.burningwave.core.iterable.Properties.Listener,org.burningwave.core.ManagedLogger,Clearable,Context,ControllableContext,IterableObjectSupport,ListenableContext
- Enclosing interface:
- Context
public static class Context.Simple extends Context.Abst
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.burningwave.graph.Context
Context.Abst, Context.IterationContext<T>, Context.Operation, Context.SimpleNested classes/interfaces inherited from interface org.burningwave.graph.ControllableContext
ControllableContext.Directive -
Field Summary
Fields inherited from class org.burningwave.graph.Context.Abst
container, executionDirectiveForGroupName, iterationContext, mutexManager -
Constructor Summary
Constructors Modifier Constructor Description protectedSimple()protectedSimple(Map<Object,Object> container, Map<String,ControllableContext.Directive> executionDirectiveForGroupName, Mutex.Manager.ForMap<Context.Operation,Object,Object> mutexManager) -
Method Summary
Modifier and Type Method Description voidclose()static Contextcreate()ContextcreateSymmetricClone()<K, V> Contextput(K key, V value)ContextputAll(Map<?,?> inputContainer)ContextputAll(Context input)ContextputDirective(String groupName, ControllableContext.Directive directive)ContextremoveAll(Object... keys)ContextremoveDirective(String groupName, ControllableContext.Directive directive)<V> VwaitForPut(Object key, Predicate<V> predicate, int... timeout)<V> VwaitForRemove(Object key, Predicate<V> predicate, int... timeout)Methods inherited from class org.burningwave.graph.Context.Abst
clear, containsOneOf, get, getCurrentIteratedObject, getCurrentIterationIndex, getCurrentIterationResult, setCurrentIterationResultMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.burningwave.core.Component
getOrCreateTemporaryFolder, getTemporaryFolderPrefix
-
Field Details
-
Constructor Details
-
Simple
protected Simple(Map<Object,Object> container, Map<String,ControllableContext.Directive> executionDirectiveForGroupName, Mutex.Manager.ForMap<Context.Operation,Object,Object> mutexManager) -
Simple
protected Simple()
-
-
Method Details
-
create
-
put
-
removeAll
-
putAll
-
putDirective
-
removeDirective
-
putAll
-
createSymmetricClone
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceorg.burningwave.core.Component- Specified by:
closein interfaceContext- Overrides:
closein classContext.Abst
-
waitForPut
public <V> V waitForPut(Object key, Predicate<V> predicate, int... timeout) throws InterruptedException- Throws:
InterruptedException
-
waitForRemove
public <V> V waitForRemove(Object key, Predicate<V> predicate, int... timeout) throws InterruptedException- Throws:
InterruptedException
-