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 SummaryConstructorsModifierConstructorDescriptionprotectedprotectedStaticPublisherState(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 SummaryModifier and TypeMethodDescriptionio.micronaut.core.type.Argumentio.micronaut.core.type.Argumentio.nats.client.impl.Headers
- 
Constructor Details- 
StaticPublisherStateprotected 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 to
- bodyArgument- The argument representing the body
- methodHeaders- The methods headers
- returnType- The return type of the method
- connection- The connection to use
- serDes- The body serializer
- reactivePublisher- The reactive publisher
 
- 
StaticPublisherState
 
- 
- 
Method Details- 
getSubject- Returns:
- The subject
 
- 
getBodyArgumentpublic io.micronaut.core.type.Argument getBodyArgument()- Returns:
- The body argument
 
- 
getHeaderspublic io.nats.client.impl.Headers getHeaders()- Returns:
- the method headers
 
- 
getDataTypepublic 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
 
 
-