public final class NonExpiringSnapshot extends Snapshot
null
from
getContents()
; it wraps another snapshot and holds on its contents.
Protractedly holding on non-expiring snapshots is not recommended, as they may potentially consume large amount of space.
Constructor and Description |
---|
NonExpiringSnapshot(ISnapshotProvider provider)
Takes a snapshot from the given provider and wraps it in a new
non-expiring snapshot.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContents()
Returns the cached contents of the wrapped snapshot.
|
ISnapshot |
getWrappedSnapshot()
Returns the snapshot wrapped by this snapshot.
|
isEqualTo, predictEquality
public NonExpiringSnapshot(ISnapshotProvider provider)
provider
- a snapshot provider from which a snapshot is to be taken
(not null
)java.lang.IllegalStateException
- if the snapshot could not be created
because of an inappropriate state of the snapshot providerpublic java.lang.String getContents()
Protractedly holding on the returned contents is not recommended, as it may potentially consume significant amount of space.
null
)public ISnapshot getWrappedSnapshot()
null
)Copyright (c) 2014, 2018 1C-Soft LLC and others. Made available under the Eclipse Public License 2.0