Interface ConcurrentApplicationContext
-
- All Implemented Interfaces:
-
io.github.funofprograming.context.ApplicationContext
public interface ConcurrentApplicationContext implements ApplicationContext
-
-
Method Summary
Modifier and Type Method Description abstract <T extends Any> UnitaddIfNotPresent(Key<T> key, T value, Long timeout)Same as addIfNotPresent in ApplicationContext with additional timeout parameter for wait time in case of multiple threads blocking on this method abstract <T extends Any> ObjectaddWithOverwrite(Key<T> key, T value, Long timeout)Same as addWithOverwrite in ApplicationContext with additional timeout parameter for wait time in case of multiple threads blocking on this method abstract <T extends Any> Unitadd(Key<T> key, T value, Long timeout)Same as add in ApplicationContext with additional timeout parameter for wait time in case of multiple threads blocking on this method abstract <T extends Any> Booleanexists(Key<T> key, Long timeout)Same as exists in ApplicationContext with additional timeout parameter for wait time in case of multiple threads blocking on this method abstract <T extends Any> Tfetch(Key<T> key, Long timeout)Same as fetch in ApplicationContext with additional timeout parameter for wait time in case of multiple threads blocking on this method abstract <T extends Any> Terase(Key<T> key, Long timeout)Same as erase in ApplicationContext with additional timeout parameter for wait time in case of multiple threads blocking on this method abstract Unitclear(Long timeout)Same as clear in ApplicationContext with additional timeout parameter for wait time in case of multiple threads blocking on this method abstract Unitmerge(ApplicationContext other, ApplicationContextMergeStrategy mergeStrategy, Long timeout)Same as merge in ApplicationContext with additional timeout parameter for wait time in case of multiple threads blocking on this method -
Methods inherited from class io.github.funofprograming.context.ApplicationContext
add, addIfNotPresent, addWithOverwrite, clear, clone, erase, exists, fetch, getName, getPermittedKeys, isKeyValid, keySet, merge -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
addIfNotPresent
abstract <T extends Any> Unit addIfNotPresent(Key<T> key, T value, Long timeout)
Same as addIfNotPresent in ApplicationContext with additional timeout parameter for wait time in case of multiple threads blocking on this method
- Parameters:
timeout- in millis </T>
-
addWithOverwrite
abstract <T extends Any> Object addWithOverwrite(Key<T> key, T value, Long timeout)
Same as addWithOverwrite in ApplicationContext with additional timeout parameter for wait time in case of multiple threads blocking on this method
- Parameters:
timeout- in millis- Returns:
- </T>
-
add
abstract <T extends Any> Unit add(Key<T> key, T value, Long timeout)
Same as add in ApplicationContext with additional timeout parameter for wait time in case of multiple threads blocking on this method
- Parameters:
timeout- in millis </T>
-
exists
abstract <T extends Any> Boolean exists(Key<T> key, Long timeout)
Same as exists in ApplicationContext with additional timeout parameter for wait time in case of multiple threads blocking on this method
- Parameters:
timeout- in millis- Returns:
- </T>
-
fetch
abstract <T extends Any> T fetch(Key<T> key, Long timeout)
Same as fetch in ApplicationContext with additional timeout parameter for wait time in case of multiple threads blocking on this method
- Parameters:
timeout- in millis- Returns:
- </T>
-
erase
abstract <T extends Any> T erase(Key<T> key, Long timeout)
Same as erase in ApplicationContext with additional timeout parameter for wait time in case of multiple threads blocking on this method
- Parameters:
timeout- in millis- Returns:
- </T>
-
clear
abstract Unit clear(Long timeout)
Same as clear in ApplicationContext with additional timeout parameter for wait time in case of multiple threads blocking on this method
- Parameters:
timeout- in millis
-
merge
abstract Unit merge(ApplicationContext other, ApplicationContextMergeStrategy mergeStrategy, Long timeout)
Same as merge in ApplicationContext with additional timeout parameter for wait time in case of multiple threads blocking on this method
- Parameters:
timeout- in millis
-
-
-
-