Class CombainedIdSequences<D>
- java.lang.Object
-
- jetbrains.buildServer.serverSide.db.CombainedIdSequences<D>
-
- All Implemented Interfaces:
IdSequences<D>
public final class CombainedIdSequences<D> extends Object implements IdSequences<D>
Combains sequences from different sources.- Author:
- Leonid Bushuev from JetBrains
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IdSequence<? extends D>
getSequence(String domainName)
Provides with the sequence for the specified domain.D
nextOne(String domainName)
Produces and returns one next identifier of the specified domain.static <DD> IdSequences<? extends DD>
of(IdSequences<? extends DD>... sequences)
-
-
-
Method Detail
-
of
public static <DD> IdSequences<? extends DD> of(@NotNull IdSequences<? extends DD>... sequences)
-
getSequence
@NotNull public IdSequence<? extends D> getSequence(@NotNull String domainName) throws UnknownDomainException
Description copied from interface:IdSequences
Provides with the sequence for the specified domain.- Specified by:
getSequence
in interfaceIdSequences<D>
- Parameters:
domainName
- domain.- Returns:
- the sequence for this domain.
- Throws:
UnknownDomainException
-
nextOne
@NotNull public D nextOne(@NotNull String domainName) throws UnknownDomainException
Description copied from interface:IdSequences
Produces and returns one next identifier of the specified domain.- Specified by:
nextOne
in interfaceIdSequences<D>
- Returns:
- the new identifier.
- Throws:
UnknownDomainException
-
-