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