Package | Description |
---|---|
com.neurosys.q.service |
Modifier and Type | Method and Description |
---|---|
List<T> |
TokenContainerService.add(C tokenContainer,
List<T> tokens,
Consumer<T> consumer,
TokenEvent<T> tokenEvent) |
List<T> |
TokenManager.add(S shift,
List<T> tokens,
TokenEvent<T> tokenEvent)
Assign tokens to a Shift
|
boolean |
QStrategy.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 |
TokenDispatcher.dispatch(E tokenEvent)
Dispath a token in an existing
TokenEvent |
E |
TokenDispatcher.dispatch(T token)
Dispatch the token and ensure its in process.
|
T |
TokenGenerator.generate(R request,
SingleTokenEvent<T> tokenEvent)
Generate a
Token based on Application defined input. |
boolean |
TokenGenerator.validate(R request)
Similar to
#generate(TokenRequest) , however in this case
there is no commitment to creating the actual Token . |
Copyright © 2018. All rights reserved.