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.Cleanable,org.burningwave.core.Closeable,org.burningwave.core.Component,org.burningwave.core.Identifiable,org.burningwave.core.iterable.Properties.Listener,org.burningwave.core.Memorizer,Context,ControllableContext,IterableObjectSupport,ListenableContext
- Enclosing interface:
Context
- See Also:
-
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
FieldsFields inherited from class org.burningwave.graph.Context.Abst
container, executionDirectiveForGroupName, iterationContext, mutexManager -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSimple()protectedSimple(Map<Object, Object> container, Map<String, ControllableContext.Directive> executionDirectiveForGroupName, Mutex.Manager.ForMap<Context.Operation, Object, Object> mutexManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static Contextcreate()<K,V> Context put(K key, V value) putDirective(String groupName, ControllableContext.Directive directive) removeDirective(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.Cleanable
clearInBackgroundMethods inherited from interface org.burningwave.core.Closeable
closeResources, closeResources, createCloseResoucesTask, createCloseResoucesTaskMethods inherited from interface org.burningwave.core.Identifiable
getId, getOperationIdMethods inherited from interface org.burningwave.core.Memorizer
getOrCreateTemporaryFolder, getOrCreateTemporaryFolder, getTemporaryFolderPrefixMethods inherited from interface org.burningwave.core.iterable.Properties.Listener
checkAndListenTo, checkAndUnregister, listenTo, processChangeNotification, unregister
-
Field Details
-
parent
-
-
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.Closeable- 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
-