Interface BackupService

All Superinterfaces:
com.google.common.util.concurrent.Service
All Known Implementing Classes:
BackupMockService, FileService

public interface BackupService extends com.google.common.util.concurrent.Service
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
     

    Nested classes/interfaces inherited from interface com.google.common.util.concurrent.Service

    com.google.common.util.concurrent.Service.Listener, com.google.common.util.concurrent.Service.State
  • Method Summary

    Modifier and Type
    Method
    Description
    com.google.common.util.concurrent.ListenableFuture<BackupReply>
     
    com.google.common.util.concurrent.ListenableFuture<BackupRestoreReply>
     
    com.google.common.util.concurrent.ListenableFuture<Void>
    Register delegate to handle backing up and restoring data to/from a file.

    Methods inherited from interface com.google.common.util.concurrent.Service

    addListener, awaitRunning, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, awaitTerminated, failureCause, isRunning, startAsync, state, stopAsync
  • Method Details

    • registerBackupDelegate

      com.google.common.util.concurrent.ListenableFuture<Void> registerBackupDelegate(BackupService.AbstractBackupDelegate delegate)
      Register delegate to handle backing up and restoring data to/from a file.
      Returns:
      future completes when registration is done
    • backup

      com.google.common.util.concurrent.ListenableFuture<BackupReply> backup(BackupRequest request)
    • backupRestore

      com.google.common.util.concurrent.ListenableFuture<BackupRestoreReply> backupRestore(BackupRestoreRequest request)