Package io.micronaut.nats.intercept
Class StaticPublisherState
java.lang.Object
io.micronaut.nats.intercept.StaticPublisherState
Stores the static state for publishing messages with
NatsClient
.- Since:
- 1.0.0
- Author:
- jgrimm
-
Constructor Summary
ModifierConstructorDescriptionprotected
protected
StaticPublisherState
(String subject, io.micronaut.core.type.Argument<?> bodyArgument, io.nats.client.impl.Headers methodHeaders, io.micronaut.core.type.ReturnType<?> returnType, String connection, NatsMessageSerDes<?> serDes, ReactivePublisher reactivePublisher) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionio.micronaut.core.type.Argument
io.micronaut.core.type.Argument
io.nats.client.impl.Headers
-
Constructor Details
-
StaticPublisherState
protected StaticPublisherState(String subject, io.micronaut.core.type.Argument<?> bodyArgument, io.nats.client.impl.Headers methodHeaders, io.micronaut.core.type.ReturnType<?> returnType, String connection, NatsMessageSerDes<?> serDes, ReactivePublisher reactivePublisher) Default constructor.- Parameters:
subject
- The subject to publish tobodyArgument
- The argument representing the bodymethodHeaders
- The methods headersreturnType
- The return type of the methodconnection
- The connection to useserDes
- The body serializerreactivePublisher
- The reactive publisher
-
StaticPublisherState
-
-
Method Details
-
getSubject
- Returns:
- The subject
-
getBodyArgument
public io.micronaut.core.type.Argument getBodyArgument()- Returns:
- The body argument
-
getHeaders
public io.nats.client.impl.Headers getHeaders()- Returns:
- the method headers
-
getDataType
public io.micronaut.core.type.Argument getDataType()- Returns:
- The type of data being requested
-
getSerDes
- Returns:
- The serializer
-
getReactivePublisher
- Returns:
- The reactive publisher
-
getConnection
- Returns:
- the connection name
-