T
- as Token
public interface QStrategy<T extends Token<T>> extends TokenEventSupplier<T>
Modifier and Type | Method and Description |
---|---|
boolean |
allowAdd(TokenContainer<T> container,
List<T> tokens)
Business logic if we can allow a token to be added to the Q or not @ the
TokenManager stage
This should be called before a token is actually added to a Q. |
void |
autoAssignData(T token,
Route<T> route)
|
<R extends Route<T>> |
determineRoute(T token)
What is the route for a token
|
Number |
getTokenPriority(T token)
A
Number where higher denotes more important
and lesser denotes lesser importance. |
onTokenChange
Number getTokenPriority(T token)
Number
where higher denotes more important
and lesser denotes lesser importance.boolean allowAdd(TokenContainer<T> container, List<T> tokens) throws TokenGenerationException
TokenManager
stage
container
- as TokenContainer
tokens
- as List
of Token
sTokenGenerationException
void autoAssignData(T token, Route<T> route)
Token
is assigned its Batch
or Shift
.
determineRoute(Token)
as Shift needs to be known the Token
is assigned to.Copyright © 2018. All rights reserved.