Class StaticShellMessageHeaderAccessor

java.lang.Object
org.springframework.shell.component.message.StaticShellMessageHeaderAccessor

public final class StaticShellMessageHeaderAccessor extends Object
Lightweight type-safe header accessor avoiding object creation just to access a header.
See Also:
  • Method Details

    • getId

      @Nullable public static UUID getId(org.springframework.messaging.Message<?> message)
    • getTimestamp

      @Nullable public static Long getTimestamp(org.springframework.messaging.Message<?> message)
    • getPriority

      @Nullable public static Integer getPriority(org.springframework.messaging.Message<?> message)
    • getView

      @Nullable public static View getView(org.springframework.messaging.Message<?> message)
    • getReactorContext

      public static reactor.util.context.ContextView getReactorContext(org.springframework.messaging.Message<?> message)
      Get a ContextView header if present.
      Parameters:
      message - the message to get a header from.
      Returns:
      the ContextView header if present.
    • getEventType

      public static EventLoop.Type getEventType(org.springframework.messaging.Message<?> message)
      Get a EventLoop.Type header if present.
      Parameters:
      message - the message to get a header from.
      Returns:
      the EventLoop.Type header if present.