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, getpublic 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
BelatedCreatorcreateReal in class BelatedCreator<Storage<S extends Storable>,SupportException>SupportExceptionprotected Storage<S> createBogus()
BelatedCreatorcreateBogus in class BelatedCreator<Storage<S extends Storable>,SupportException>protected void timedOutNotification(long timedOutMillis)
BelatedCreatortimedOutNotification in class BelatedCreator<Storage<S extends Storable>,SupportException>timedOutMillis - milliseconds waited before giving upCopyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.