Class StaticShellMessageHeaderAccessor
java.lang.Object
org.springframework.shell.jline.tui.component.message.StaticShellMessageHeaderAccessor
Lightweight type-safe header accessor avoiding object creation just to access a header.
- Author:
- Janne Valkealahti, Piotr Olaszewski
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable EventLoop.TypegetEventType(org.springframework.messaging.Message<?> message) Get aEventLoop.Typeheader if present.static @Nullable UUIDgetId(org.springframework.messaging.Message<?> message) static @Nullable IntegergetPriority(org.springframework.messaging.Message<?> message) static reactor.util.context.ContextViewgetReactorContext(org.springframework.messaging.Message<?> message) Get aContextViewheader if present.static @Nullable LonggetTimestamp(org.springframework.messaging.Message<?> message) static @Nullable ViewgetView(org.springframework.messaging.Message<?> message)
-
Method Details
-
getId
-
getTimestamp
-
getPriority
-
getView
-
getReactorContext
public static reactor.util.context.ContextView getReactorContext(org.springframework.messaging.Message<?> message) Get aContextViewheader if present.- Parameters:
message- the message to get a header from.- Returns:
- the
ContextViewheader if present.
-
getEventType
public static @Nullable EventLoop.Type getEventType(org.springframework.messaging.Message<?> message) Get aEventLoop.Typeheader if present.- Parameters:
message- the message to get a header from.- Returns:
- the
EventLoop.Typeheader if present.
-