Package i5.las2peer.persistency.helper
Class FetchEnvelopeHelper
java.lang.Object
i5.las2peer.persistency.helper.FetchEnvelopeHelper
- All Implemented Interfaces:
StorageEnvelopeHandler,StorageExceptionHandler
public class FetchEnvelopeHelper extends java.lang.Object implements StorageEnvelopeHandler, StorageExceptionHandler
-
Constructor Summary
Constructors Constructor Description FetchEnvelopeHelper() -
Method Summary
Modifier and Type Method Description EnvelopeVersiongetResult()voidonEnvelopeReceived(EnvelopeVersion result)This method is called if the envelope was successfully fetched from the network.voidonException(java.lang.Exception e)This method is called in its own thread to handle the given exception.
-
Constructor Details
-
FetchEnvelopeHelper
public FetchEnvelopeHelper()
-
-
Method Details
-
onEnvelopeReceived
Description copied from interface:StorageEnvelopeHandlerThis method is called if the envelope was successfully fetched from the network.- Specified by:
onEnvelopeReceivedin interfaceStorageEnvelopeHandler- Parameters:
result- The envelope that was retrieved from the network.
-
onException
public void onException(java.lang.Exception e)Description copied from interface:StorageExceptionHandlerThis method is called in its own thread to handle the given exception.- Specified by:
onExceptionin interfaceStorageExceptionHandler- 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
- Throws:
java.lang.Exception
-