Interface LocalHandlerInput
- All Superinterfaces:
HandlerInput<DeserializingMessage>
- All Known Implementing Classes:
LocalExecution
Gives Fluxzero handling extensions access to a local invocation whose full message is created only when needed.
This is an infrastructure interface. Applications normally receive the payload, metadata, user, or message as handler parameters and do not implement or invoke this interface directly.
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsMetadata(String key) Tests already available metadata without forcing deferred metadata creation.getIndex()Returns the message index when the local input represents a stored message.Returns the type of message being handled.Returns the local message metadata, computing deferred metadata changes when necessary.getUser(UserProvider provider) Returns the user selected for this local dispatch.booleanReturns whether user resolution has already completed for this input.Invokes a prepared handler plan while installing the required local handling context.Methods inherited from interface HandlerInput
getMessage, getMessageIfAvailable, getPayload
-
Method Details
-
getMessageType
MessageType getMessageType()Returns the type of message being handled.- Returns:
- the current message type
-
getUser
Returns the user selected for this local dispatch.- Parameters:
provider- the configured provider whose user is requested- Returns:
- the resolved user, or
nullif the dispatch has no user
-
hasResolvedUser
boolean hasResolvedUser()Returns whether user resolution has already completed for this input.- Returns:
truewhengetUser(UserProvider)can be used without materializing the message
-
getMetadata
Metadata getMetadata()Returns the local message metadata, computing deferred metadata changes when necessary.- Returns:
- the current metadata
-
containsMetadata
Tests already available metadata without forcing deferred metadata creation.- Parameters:
key- the metadata key to look up- Returns:
trueif already available metadata contains the key
-
getIndex
Long getIndex()Returns the message index when the local input represents a stored message.- Returns:
- the message index, or
nullfor a newly dispatched local message
-
invoke
Invokes a prepared handler plan while installing the required local handling context.- Parameters:
plan- the handler plan to invoke- Returns:
- the handler result
-