public class BelatedStorageCreator<S extends Storable> extends BelatedCreator<Storage<S>,SupportException>
BelatedRepositoryCreator
Constructor and Description |
---|
BelatedStorageCreator(org.apache.commons.logging.Log log,
Repository repo,
java.lang.Class<S> storableType,
int minRetryDelayMillis) |
Modifier and Type | Method and Description |
---|---|
protected Storage<S> |
createBogus()
Create instance of bogus object.
|
protected Storage<S> |
createReal()
Create instance of real object.
|
protected void |
timedOutNotification(long timedOutMillis)
Notification that createReal is taking too long.
|
createdNotification, get
public BelatedStorageCreator(org.apache.commons.logging.Log log, Repository repo, java.lang.Class<S> storableType, int minRetryDelayMillis)
log
- error reporting logrepo
- Repository to get Storage fromstorableType
- type of Storable to get Storage forminRetryDelayMillis
- minimum milliseconds to wait before retrying
to create object after failure; if negative, never retryprotected Storage<S> createReal() throws SupportException
BelatedCreator
createReal
in class BelatedCreator<Storage<S extends Storable>,SupportException>
SupportException
protected Storage<S> createBogus()
BelatedCreator
createBogus
in class BelatedCreator<Storage<S extends Storable>,SupportException>
protected void timedOutNotification(long timedOutMillis)
BelatedCreator
timedOutNotification
in class BelatedCreator<Storage<S extends Storable>,SupportException>
timedOutMillis
- milliseconds waited before giving upCopyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.