Class EncryptedSnapshotPath

java.lang.Object
org.gridgain.internal.snapshots.filesystem.EncryptedSnapshotPath
All Implemented Interfaces:
SnapshotPath

public class EncryptedSnapshotPath extends Object implements SnapshotPath
Encrypted wrapper of SnapshotPath.
  • Constructor Details

  • Method Details

    • readChannel

      public CompletableFuture<ReadableByteChannel> readChannel()
      Description copied from interface: SnapshotPath
      Opens a channel to read the object identified by this path.

      The channel should be closed in futures chain.

      Specified by:
      readChannel in interface SnapshotPath
      Returns:
      Completable future with readable channel.
    • writeChannel

      public CompletableFuture<WritableByteChannel> writeChannel()
      Description copied from interface: SnapshotPath
      Opens a channel to write the object identified by this path.

      Creates the object if it does not exist.

      The channel should be closed in futures chain.

      Closing the channel ensures that the data has been saved durably on the underlying storage.

      Specified by:
      writeChannel in interface SnapshotPath
      Returns:
      Completable future with writable channel.
    • uri

      public URI uri()
      Description copied from interface: SnapshotPath
      Returns URI of the object identified by this path.
      Specified by:
      uri in interface SnapshotPath