public class BelatedRepositoryCreator extends BelatedCreator<Repository,SupportException>
BelatedStorageCreator
Constructor and Description |
---|
BelatedRepositoryCreator(org.apache.commons.logging.Log log,
RepositoryBuilder builder,
java.util.concurrent.atomic.AtomicReference<Repository> rootRef,
int minRetryDelayMillis) |
BelatedRepositoryCreator(org.apache.commons.logging.Log log,
RepositoryBuilder builder,
int minRetryDelayMillis) |
Modifier and Type | Method and Description |
---|---|
protected Repository |
createBogus()
Create instance of bogus object.
|
protected Repository |
createReal()
Create instance of real object.
|
protected void |
timedOutNotification(long timedOutMillis)
Notification that createReal is taking too long.
|
createdNotification, get
public BelatedRepositoryCreator(org.apache.commons.logging.Log log, RepositoryBuilder builder, int minRetryDelayMillis)
log
- error reporting logbuilder
- builds real RepositoryminRetryDelayMillis
- minimum milliseconds to wait before retrying
to create object after failure; if negative, never retrypublic BelatedRepositoryCreator(org.apache.commons.logging.Log log, RepositoryBuilder builder, java.util.concurrent.atomic.AtomicReference<Repository> rootRef, int minRetryDelayMillis)
log
- error reporting logbuilder
- builds real RepositoryrootRef
- reference to root repositoryminRetryDelayMillis
- minimum milliseconds to wait before retrying
to create object after failure; if negative, never retryprotected Repository createReal() throws SupportException
BelatedCreator
createReal
in class BelatedCreator<Repository,SupportException>
SupportException
protected Repository createBogus()
BelatedCreator
createBogus
in class BelatedCreator<Repository,SupportException>
protected void timedOutNotification(long timedOutMillis)
BelatedCreator
timedOutNotification
in class BelatedCreator<Repository,SupportException>
timedOutMillis
- milliseconds waited before giving upCopyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.