Package one.microstream.persistence.util
Class Reloader.Default
java.lang.Object
one.microstream.persistence.util.Reloader.Default
- All Implemented Interfaces:
Reloader
- Enclosing interface:
- Reloader
public static class Reloader.Default extends Object implements Reloader
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.persistence.util.Reloader
Reloader.Default -
Method Summary
Modifier and Type Method Description <T> TreloadDeep(T instance)Resets the state of the given instance and all of its references to the state of the underlying storage.<T> TreloadFlat(T instance)Resets the state of the given instance to the state of the underlying storage.
-
Method Details
-
reloadFlat
public <T> T reloadFlat(T instance)Description copied from interface:ReloaderResets the state of the given instance to the state of the underlying storage. But not its references.- Specified by:
reloadFlatin interfaceReloader- Type Parameters:
T- type of the instance- Parameters:
instance- the object to reload- Returns:
- the reloaded object, or
nullif it was not found in the storage
-
reloadDeep
public <T> T reloadDeep(T instance)Description copied from interface:ReloaderResets the state of the given instance and all of its references to the state of the underlying storage.- Specified by:
reloadDeepin interfaceReloader- Type Parameters:
T- type of the instance- Parameters:
instance- the object to reload- Returns:
- the reloaded object, or
nullif it was not found in the storage
-