Class ProcessDataContext.ProcessDataStack

  • Enclosing class:
    ProcessDataContext

    protected static class ProcessDataContext.ProcessDataStack
    extends java.lang.Object
    • Field Detail

      • mdcName

        protected java.lang.String mdcName
      • deque

        protected java.util.Deque<java.lang.String> deque
    • Constructor Detail

      • ProcessDataStack

        public ProcessDataStack​(java.lang.String mdcName)
        Parameters:
        mdcName - is optional. If present, any additions to a stack will also be reflected in the MDC context
    • Method Detail

      • isEmpty

        public boolean isEmpty()
      • getCurrentValue

        public java.lang.String getCurrentValue()
      • pushCurrentValue

        public void pushCurrentValue​(java.lang.String value)
      • pushCurrentValueFromMdc

        public boolean pushCurrentValueFromMdc()
        Returns:
        true if a value was obtained from the mdc and added to the stack
      • removeCurrentValue

        public void removeCurrentValue()
      • clearMdcProperty

        public void clearMdcProperty()
      • updateMdcWithCurrentValue

        public void updateMdcWithCurrentValue()