クラス StaticShellMessageHeaderAccessor
java.lang.ObjectSE
org.springframework.shell.component.message.StaticShellMessageHeaderAccessor
ヘッダーにアクセスするためだけにオブジェクトの作成を回避する、軽量の型安全ヘッダーアクセサー。
方法の概要
修飾子と型メソッド説明static EventLoop.TypegetEventType(org.springframework.messaging.Message<?> message) EventLoop.Typeヘッダーが存在する場合は取得します。static UUIDSEgetId(org.springframework.messaging.Message<?> message) static IntegerSEgetPriority(org.springframework.messaging.Message<?> message) static reactor.util.context.ContextViewgetReactorContext(org.springframework.messaging.Message<?> message) ContextViewヘッダーが存在する場合はそれを取得します。static LongSEgetTimestamp(org.springframework.messaging.Message<?> message) static ViewgetView(org.springframework.messaging.Message<?> message)
メソッドの詳細
getId
getTimestamp
getPriority
getView
getReactorContext
public static reactor.util.context.ContextView getReactorContext(org.springframework.messaging.Message<?> message) ContextViewヘッダーが存在する場合はそれを取得します。- パラメーター:
message- ヘッダーを取得するメッセージ。- 戻り値:
ContextViewヘッダー (存在する場合)。
getEventType
EventLoop.Typeヘッダーが存在する場合は取得します。- パラメーター:
message- ヘッダーを取得するメッセージ。- 戻り値:
EventLoop.Typeヘッダー (存在する場合)。