Example usage for Java org.springframework.batch.core.scope.context JobSynchronizationManager fields, constructors, methods, implement or subclass
The text is from its open source code.
void | close() Method for unregistering the current context - should always and only be used by in conjunction with a matching #register(JobExecution) to ensure that #getContext() always returns the correct value. |
JobContext | getContext() Getter for the current context if there is one, otherwise returns null . |
JobContext | register(JobExecution JobExecution) Register a context with the current thread - always put a matching #close() call in a finally block to ensure that the correct context is available in the enclosing block. |
void | release() A convenient "deep" close operation. |