public interface StoredResource
Recoverobjects. This objects represented by this interface are resources that have expiration times (LeasedResource).
|Modifier and Type||Method and Description|
Restore the state of a
void restore(StorableResource obj) throws IOException, ClassNotFoundException
StorableResource. The resource to be restored will have its expiration set before this method returns. If this method returned a new StorableResource instead of mutating the passed in StorableResource as a side effect, the implementation could be thread safe and immutable.
obj- resource to restore
IOException- if an IO related exception occurs.
ClassNotFoundException- if class not found.
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.