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.TypegetEventType(org.springframework.messaging.Message<?> message) Get aEventLoop.Typeheader if present.static UUIDgetId(org.springframework.messaging.Message<?> message) static IntegergetPriority(org.springframework.messaging.Message<?> message) static reactor.util.context.ContextViewgetReactorContext(org.springframework.messaging.Message<?> message) Get aContextViewheader if present.static LonggetTimestamp(org.springframework.messaging.Message<?> message) static 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
Get aEventLoop.Typeheader if present.- Parameters:
message- the message to get a header from.- Returns:
- the
EventLoop.Typeheader if present.
-