ConfigType
- configuration type for the dispatch layerpublic interface PropertyContributingDispatchLayer<ConfigType> extends DispatchLayer<ConfigType>
Modifier and Type | Method and Description |
---|---|
void |
injectPropertiesFor(String owningProcess)
Inject properties for the specified owning process into the parent
dispatch stack.
|
finishedWith, receiveError, receiveJob, receiveJobQueue, receiveResult, receiveResultCompletion, setDispatchStack
configure, getConfiguration
void injectPropertiesFor(String owningProcess)
Threading - this thread must not fork, do all the work in this method in the thread you're given by the caller. This is because implementations may assume that they can collect properties from the dispatch stack implementation (which will expose them through a private access method to prevent arbitrary access to layer properties) once this call has returned.
There is no guarantee that the layer will have seen an event with the specified process, and in fact it's unlikely to in the general case as any layers above it are free to modify the process identifier of tokens as they go. Remember that this method is for aggregating properties into the top level (processor) view so you may need to implement the property getters such that they check prefixes of identifiers rather than equality.
owningProcess
- Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.