public class JRSwapFileVirtualizer extends StoreVirtualizer
JRAbstractLRUVirtualizer.Cache, JRAbstractLRUVirtualizer.CacheReference
lastObjectMap, lastObjectRef, lastObjectSet, pagedIn, pagedOut, serializer
Constructor and Description |
---|
JRSwapFileVirtualizer(int maxSize,
JRSwapFile swap)
Creates a virtualizer that uses a swap file.
|
JRSwapFileVirtualizer(int maxSize,
JRSwapFile swap,
boolean swapOwner)
Creates a virtualizer that uses a swap file.
|
JRSwapFileVirtualizer(int maxSize,
JRSwapFile swap,
boolean swapOwner,
StreamCompression compression)
Creates a virtualizer that uses a swap file.
|
cleanup, dispose, pageIn, pageOut
clearData, deregisterObject, dispose, disposeAll, evict, finalize, isEvictable, isPagedOut, isPagedOutAndTouch, isReadOnly, isReadOnly, lastObject, readData, registerObject, requestData, reset, setLastObject, setReadOnly, touch, virtualizeData, writeData
public JRSwapFileVirtualizer(int maxSize, JRSwapFile swap)
The virtualizer will be considered the owner of the swap file.
maxSize
- the maximum size (in JRVirtualizable objects) of the paged in cache.swap
- the swap file to use for data virtualizationpublic JRSwapFileVirtualizer(int maxSize, JRSwapFile swap, boolean swapOwner)
maxSize
- the maximum size (in JRVirtualizable objects) of the paged in cache.swap
- the swap file to use for data virtualizationswapOwner
- whether the virtualizer is the owner (single user) of the swap file.
If true
, the virtualizer will dispose the swap file on
cleanup
.public JRSwapFileVirtualizer(int maxSize, JRSwapFile swap, boolean swapOwner, StreamCompression compression)
maxSize
- the maximum size (in JRVirtualizable objects) of the paged in cache.swap
- the swap file to use for data virtualizationswapOwner
- whether the virtualizer is the owner (single user) of the swap file.
If true
, the virtualizer will dispose the swap file on
cleanup
.compression
- stream compression to apply to serialized dataCopyright © 2021 TIBCO Software Inc.. All rights reserved.