org.compass.gps.device.jdbc.snapshot
Class RAMJdbcSnapshotPersister
java.lang.Object
org.compass.gps.device.jdbc.snapshot.RAMJdbcSnapshotPersister
- All Implemented Interfaces:
- JdbcSnapshotPersister
public class RAMJdbcSnapshotPersister
- extends Object
- implements JdbcSnapshotPersister
A RAM (memory) based snapshot persister. The persister will store the data in
memory for the whole device lifecycle (start to stop).
- Author:
- kimchy
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RAMJdbcSnapshotPersister
public RAMJdbcSnapshotPersister()
load
public JdbcSnapshot load()
throws JdbcGpsDeviceException
- Loads the snapshot from memory.
- Specified by:
load in interface JdbcSnapshotPersister
- Returns:
- The jdbc snapshot
- Throws:
JdbcGpsDeviceException
save
public void save(JdbcSnapshot snapshot)
throws JdbcGpsDeviceException
- Saves the snapshot to memory.
- Specified by:
save in interface JdbcSnapshotPersister
- Throws:
JdbcGpsDeviceException
Copyright (c) 2004-2008 The Compass Project.