Class FetchEnvelopeHelper

java.lang.Object
i5.las2peer.persistency.helper.FetchEnvelopeHelper
All Implemented Interfaces:
StorageEnvelopeHandler, StorageExceptionHandler

public class FetchEnvelopeHelper extends Object implements StorageEnvelopeHandler, StorageExceptionHandler
  • Constructor Details

    • FetchEnvelopeHelper

      public FetchEnvelopeHelper()
  • Method Details

    • onEnvelopeReceived

      public void onEnvelopeReceived(EnvelopeVersion result)
      Description copied from interface: StorageEnvelopeHandler
      This method is called if the envelope was successfully fetched from the network.
      Specified by:
      onEnvelopeReceived in interface StorageEnvelopeHandler
      Parameters:
      result - The envelope that was retrieved from the network.
    • onException

      public void onException(Exception e)
      Description copied from interface: StorageExceptionHandler
      This method is called in its own thread to handle the given exception.
      Specified by:
      onException in interface StorageExceptionHandler
      Parameters:
      e - An execption that occurred during a network operation. Usually the reason or metadata should be known from the surrounding context and should be provided to this handler, too.
    • getResult

      public EnvelopeVersion getResult() throws Exception
      Throws:
      Exception