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> T
reloadDeep(T instance)
Resets the state of the given instance and all of its references to the state of the underlying storage.<T> T
reloadFlat(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:Reloader
Resets the state of the given instance to the state of the underlying storage. But not its references.- Specified by:
reloadFlat
in interfaceReloader
- Type Parameters:
T
- type of the instance- Parameters:
instance
- the object to reload- Returns:
- the reloaded object, or
null
if it was not found in the storage
-
reloadDeep
public <T> T reloadDeep(T instance)Description copied from interface:Reloader
Resets the state of the given instance and all of its references to the state of the underlying storage.- Specified by:
reloadDeep
in interfaceReloader
- Type Parameters:
T
- type of the instance- Parameters:
instance
- the object to reload- Returns:
- the reloaded object, or
null
if it was not found in the storage
-