Interface ISwapService
-
public interface ISwapService
The swap service is responsible for swapping idle components to/from disk in order to save memory. Note, that the required operations swapToDisk/swapFromDisk are not provided by the service itself, but by the persistence service.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IFuture<java.lang.Void>
swapFromStorage(IComponentIdentifier cid)
Transparently restore the component state of a previously swapped component.IFuture<java.lang.Void>
swapToStorage(IComponentIdentifier cid)
Store the component state and transparently remove it from memory.
-
-
-
Method Detail
-
swapToStorage
IFuture<java.lang.Void> swapToStorage(IComponentIdentifier cid)
Store the component state and transparently remove it from memory. Keeps the component available in CMS to allow restoring it on access.- Parameters:
cid
- The component identifier.
-
swapFromStorage
IFuture<java.lang.Void> swapFromStorage(IComponentIdentifier cid)
Transparently restore the component state of a previously swapped component.- Parameters:
cid
- The component identifier.
-
-