Class StaticShellMessageHeaderAccessor
java.lang.Object
org.springframework.shell.component.message.StaticShellMessageHeaderAccessor
Lightweight type-safe header accessor avoiding object creation just to access
a header.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic EventLoop.Type
getEventType
(org.springframework.messaging.Message<?> message) Get aEventLoop.Type
header if present.static UUID
getId
(org.springframework.messaging.Message<?> message) static Integer
getPriority
(org.springframework.messaging.Message<?> message) static reactor.util.context.ContextView
getReactorContext
(org.springframework.messaging.Message<?> message) Get aContextView
header if present.static Long
getTimestamp
(org.springframework.messaging.Message<?> message) static View
getView
(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 aContextView
header if present.- Parameters:
message
- the message to get a header from.- Returns:
- the
ContextView
header if present.
-
getEventType
Get aEventLoop.Type
header if present.- Parameters:
message
- the message to get a header from.- Returns:
- the
EventLoop.Type
header if present.
-