Interface InstanceConfig
-
- All Known Subinterfaces:
InstanceConfigCache
- All Known Implementing Classes:
OsgiInstanceConfig
public interface InstanceConfig
Allows saving and restoring an instance configuration. Implementations define the behaviour of save() and restore()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InstanceConfig
restore()
Restores the saved status of the configurationInstanceConfig
save()
Saves the current status of the configuration
-
-
-
Method Detail
-
save
InstanceConfig save() throws InstanceConfigException, InterruptedException
Saves the current status of the configuration- Returns:
- this
- Throws:
InstanceConfigException
- if saving the configuration failsInterruptedException
- if interrupted
-
restore
InstanceConfig restore() throws InstanceConfigException, InterruptedException
Restores the saved status of the configuration- Returns:
- this
- Throws:
InstanceConfigException
- if restoring the configuration failsInterruptedException
- if interrupted
-
-