T
- as Token
typepublic interface Batch<T extends Token<T>> extends Token<T>, Queue<T>, TokenContainer<T>
Token
s.Batch
extends Token
A Batch
can contain other Batch
es.
So one can represent a Queue as a Batch or a Batch of batch.Modifier and Type | Method and Description |
---|---|
Object |
getId()
The Id for the batch
|
Object |
getParentId()
Each Batch operates within a Shift or some owning concept.
Return its id |
Number |
getSequence(T token)
Get the index of the Token
Batch if it exists. |
List<T> |
getTokens()
Gets the current tokens in the Batch
Please note that the state of tokens can keep changing real-time. |
int |
size()
Since calling
getTokens() can be expensive,
explicitly providing this where we do not care about the tokens but just the batch size. |
getBatchInfo, getCounter, getStatus, setStatus
getCreated, getFlowStatus, getStatusDate, getUpdated
compareTo
getDisplayName
addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArray
getName, remove
List<T> getTokens()
int size()
getTokens()
can be expensive,
explicitly providing this where we do not care about the tokens but just the batch size.size
in interface Collection<T extends Token<T>>
Number getSequence(T token)
Batch
if it exists.
Number index starts from 0.token
- as Object getId()
Object getParentId()
Copyright © 2018. All rights reserved.