Interface GridOperations

All Known Implementing Classes:
GridOperationsImpl, NoopGridOperations, SecuredGridOperations

@API(status=STABLE, since="2.0.0-milestone.1.2") public interface GridOperations
Grid operations, used for grids to interact with the storage network.
  • Method Details

    • extract

      boolean extract(ResourceKey resource, GridExtractMode extractMode, InsertableStorage destination)
      Tries to move a resource from the network storage to the destination. The amount being extracted depends on the extraction mode.
      Parameters:
      resource - the resource
      extractMode - the extract mode
      destination - the destination
    • insert

      boolean insert(ResourceKey resource, GridInsertMode insertMode, ExtractableStorage source)
      Tries to move a resource from the source to the network storage. The amount being inserted depends on the insert mode.
      Parameters:
      resource - the resource
      insertMode - the insertion mode
      source - the source