public abstract class SequenceValueProducerPool extends AbstractPool<java.lang.String,SequenceValueProducer,RepositoryException>
SequenceValueProducer
instances mapped by name. SequenceValueProducer instances are lazily created
and pooled.Constructor and Description |
---|
SequenceValueProducerPool() |
Modifier and Type | Method and Description |
---|---|
protected SequenceValueProducer |
create(java.lang.String name)
Return a new value instance.
|
protected abstract SequenceValueProducer |
createSequenceValueProducer(java.lang.String name) |
SequenceValueProducer |
get(java.lang.String name)
Returns a SequenceValueProducer instance for the given name, which is
lazily created and pooled.
|
void |
returnReservedValues(org.apache.commons.logging.Log log)
Returns reserved values for all
SequenceValueProducer s. |
clear, remove, values
public SequenceValueProducer get(java.lang.String name) throws RepositoryException
get
in class AbstractPool<java.lang.String,SequenceValueProducer,RepositoryException>
name
- name of sequenceRepositoryException
public void returnReservedValues(org.apache.commons.logging.Log log)
SequenceValueProducer
s.log
- optional log to report errors; uses default log if nullprotected final SequenceValueProducer create(java.lang.String name) throws RepositoryException
AbstractPool
create
in class AbstractPool<java.lang.String,SequenceValueProducer,RepositoryException>
RepositoryException
protected abstract SequenceValueProducer createSequenceValueProducer(java.lang.String name) throws RepositoryException
RepositoryException
Copyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.