Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Project Rio
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jini.rio.resources.persistence
Interface SnapshotHandler

All Known Implementing Classes:
  ServiceBeanContextManager.ContextAttributeLogHandler

    public interface SnapshotHandler

Interface a server needs to implement in order to work with a PersistentStore to determine whether a snapshot should be taken

Method Summary
`void` | `takeSnapshot()` Invoked to trigger persistent state be written and committed to a recoverable resource
`void` | `updatePerformed(int updateCount)` Called by `PersistentStore` after every update to give server a chance to trigger a snapshot

Method Detail

### takeSnapshot

    void takeSnapshot()
                      throws IOException

  Invoked to trigger persistent state be written and committed to a recoverable resource

  Throws:
    `IOException` - if an error occurs

### updatePerformed

    void updatePerformed(int updateCount)

  Called by `PersistentStore` after every update to give server a chance to trigger a snapshot

  Parameters:
    `updateCount` - Number of updates since last snapshot

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Project Rio
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © Project Rio.