Uses of Enum Class
io.fluxzero.common.MessageType
Packages that use MessageType
Package
Description
-
Uses of MessageType in io.fluxzero.common
Subclasses with type arguments of type MessageType in io.fluxzero.commonModifier and TypeClassDescriptionenumEnumerates the types of messages recognized and routed by the Fluxzero Runtime.Methods in io.fluxzero.common that return MessageTypeModifier and TypeMethodDescriptionstatic MessageTypeReturns the enum constant of this class with the specified name.static MessageType[]MessageType.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in io.fluxzero.common with parameters of type MessageTypeModifier and TypeMethodDescriptionstatic StringServicePathBuilder.gatewayPath(MessageType messageType) Returns the gateway path used to publish messages of the givenMessageType.static StringServicePathBuilder.trackingPath(MessageType messageType) Returns the tracking path used to read (track) messages of the givenMessageType. -
Uses of MessageType in io.fluxzero.common.api.tracking
Methods in io.fluxzero.common.api.tracking with parameters of type MessageTypeModifier and TypeMethodDescriptionstatic StorePositionStorePosition.fromJson(MessageType messageType, String consumer, int[] segment, long lastIndex, Guarantee guarantee) Constructors in io.fluxzero.common.api.tracking with parameters of type MessageTypeModifierConstructorDescriptionClaimSegment(MessageType messageType, String consumer, String trackerId, long maxTimeout, boolean clientControlledIndex, String typeFilter, boolean filterMessageTarget, Long lastIndex, Long purgeTimeout) -
Uses of MessageType in io.fluxzero.common.tracking
Constructors in io.fluxzero.common.tracking with parameters of type MessageTypeModifierConstructorDescriptionWebSocketTracker(Read read, MessageType messageType, String clientId, String sessionId, Consumer<MessageBatch> handler) -
Uses of MessageType in io.fluxzero.sdk
Methods in io.fluxzero.sdk with parameters of type MessageTypeModifier and TypeMethodDescriptionFluxzero.tracking(MessageType messageType) Returns a client to assist with the tracking of a given message type. -
Uses of MessageType in io.fluxzero.sdk.common
Methods in io.fluxzero.sdk.common with parameters of type MessageTypeModifier and TypeMethodDescriptionClientUtils.getTopics(MessageType messageType, Object handler) Extracts all topics associated with the given handler object and message type.ClientUtils.getTopics(MessageType messageType, Collection<Class<?>> handlerClasses) Extracts all topics fromHandleDocumentorHandleCustomannotated methods for the given classes. -
Uses of MessageType in io.fluxzero.sdk.common.serialization
Methods in io.fluxzero.sdk.common.serialization with parameters of type MessageTypeModifier and TypeMethodDescriptiondefault DeserializingMessageSerializer.deserializeMessage(SerializedMessage message, MessageType messageType) Deserializes a singleSerializedMessageinto aDeserializingMessage.default Stream<DeserializingMessage> Serializer.deserializeMessages(Stream<SerializedMessage> dataStream, MessageType messageType) Deserializes a stream ofSerializedMessageintoDeserializingMessageinstances with the specifiedMessageType.default Stream<DeserializingMessage> Serializer.deserializeMessages(Stream<SerializedMessage> dataStream, MessageType messageType, UnknownTypeStrategy unknownTypeStrategy) Deserializes a stream ofSerializedMessageintoDeserializingMessageinstances with the specifiedMessageType.default Stream<DeserializingMessage> Serializer.deserializeMessages(Stream<SerializedMessage> dataStream, MessageType messageType, String topic) Deserializes a stream ofSerializedMessageintoDeserializingMessageinstances with the specifiedMessageType.default Stream<DeserializingMessage> Serializer.deserializeMessages(Stream<SerializedMessage> dataStream, MessageType messageType, String topic, UnknownTypeStrategy unknownTypeStrategy) Deserializes a stream ofSerializedMessageintoDeserializingMessageinstances with the specifiedMessageType.Constructors in io.fluxzero.sdk.common.serialization with parameters of type MessageTypeModifierConstructorDescriptionDeserializingMessage(SerializedMessage message, Function<Type, Object> payload, MessageType messageType, String topic, Serializer serializer) DeserializingMessage(@NonNull Message message, MessageType messageType, Serializer serializer) DeserializingMessage(@NonNull Message message, MessageType messageType, String topic, Serializer serializer) DeserializingMessage(DeserializingObject<byte[], SerializedMessage> delegate, MessageType messageType, String topic, Serializer serializer) -
Uses of MessageType in io.fluxzero.sdk.common.websocket
Methods in io.fluxzero.sdk.common.websocket with parameters of type MessageTypeModifier and TypeMethodDescriptionstatic StringServiceUrlBuilder.gatewayUrl(MessageType messageType, String topic, WebSocketClient.ClientConfig clientConfig) Builds the URL to send messages to a gateway endpoint for the specified message type and topic.static StringServiceUrlBuilder.trackingUrl(MessageType messageType, String topic, WebSocketClient.ClientConfig clientConfig) Builds the URL to subscribe to messages from a tracking endpoint for the specified message type and topic. -
Uses of MessageType in io.fluxzero.sdk.configuration
Methods in io.fluxzero.sdk.configuration that return types with arguments of type MessageTypeModifier and TypeMethodDescriptionFluxzeroConfiguration.customConsumerConfigurations()Provides custom consumer configurations per message type.FluxzeroConfiguration.defaultConsumerConfigurations()Provides the default consumer configuration per message type.FluxzeroConfiguration.generalBatchInterceptors()Interceptors applied to message batches during tracking and dispatch.FluxzeroConfiguration.highPrioDispatchInterceptors()Dispatch interceptors applied before low-priority interceptors.FluxzeroConfiguration.highPrioHandlerDecorators()Decorators applied to handlers before low-priority decorators.FluxzeroConfiguration.lowPrioDispatchInterceptors()Dispatch interceptors applied after high-priority interceptors.FluxzeroConfiguration.lowPrioHandlerDecorators()Decorators applied to handlers after high-priority decorators.Methods in io.fluxzero.sdk.configuration with parameters of type MessageTypeModifier and TypeMethodDescriptionDefaultFluxzero.Builder.addBatchInterceptor(BatchInterceptor interceptor, MessageType... forTypes) FluxzeroBuilder.addBatchInterceptor(BatchInterceptor interceptor, MessageType... forTypes) Registers aBatchInterceptorthat applies to the given message types.DefaultFluxzero.Builder.addConsumerConfiguration(@NonNull ConsumerConfiguration configuration, MessageType... messageTypes) FluxzeroBuilder.addConsumerConfiguration(ConsumerConfiguration consumerConfiguration, MessageType... messageTypes) Adds a specific consumer configuration for one or more message types.DefaultFluxzero.Builder.addDispatchInterceptor(@NonNull DispatchInterceptor interceptor, boolean highPriority, MessageType... forTypes) FluxzeroBuilder.addDispatchInterceptor(DispatchInterceptor interceptor, boolean highPriority, MessageType... forTypes) Adds aDispatchInterceptorfor specified message types with optional priority.default FluxzeroBuilderFluxzeroBuilder.addDispatchInterceptor(DispatchInterceptor interceptor, MessageType... forTypes) Adds aDispatchInterceptorthat modifies or monitors message dispatch.DefaultFluxzero.Builder.addHandlerDecorator(@NonNull HandlerDecorator interceptor, boolean highPriority, MessageType... forTypes) FluxzeroBuilder.addHandlerDecorator(HandlerDecorator decorator, boolean highPriority, MessageType... forTypes) Adds aHandlerDecoratorwith control over priority.default FluxzeroBuilderFluxzeroBuilder.addHandlerDecorator(HandlerDecorator decorator, MessageType... forTypes) Adds aHandlerDecoratorfor the given message types.default FluxzeroBuilderFluxzeroBuilder.addHandlerInterceptor(HandlerInterceptor interceptor, boolean highPriority, MessageType... forTypes) Adds aHandlerInterceptorwith specified priority.default FluxzeroBuilderFluxzeroBuilder.addHandlerInterceptor(HandlerInterceptor interceptor, MessageType... forTypes) Adds aHandlerInterceptorfor given message types.DefaultFluxzero.Builder.configureDefaultConsumer(@NonNull MessageType messageType, @NonNull UnaryOperator<ConsumerConfiguration> updateFunction) FluxzeroBuilder.configureDefaultConsumer(MessageType messageType, UnaryOperator<ConsumerConfiguration> updateFunction) Update the default consumer configuration for the specified message type.protected GenericGatewayDefaultFluxzero.Builder.createRequestGateway(Client client, MessageType messageType, String topic, RequestHandler requestHandler, Map<MessageType, DispatchInterceptor> dispatchInterceptors, Map<MessageType, HandlerDecorator> handlerDecorators, List<ParameterResolver<? super DeserializingMessage>> parameterResolvers, Function<Class<?>, HandlerRepository> handlerRepositorySupplier, RepositoryProvider repositoryProvider, ResponseMapper responseMapper) protected ConsumerConfigurationDefaultFluxzero.Builder.getDefaultConsumerConfiguration(MessageType messageType) protected HandlerRegistryDefaultFluxzero.Builder.localHandlerRegistry(MessageType messageType, Map<MessageType, HandlerDecorator> handlerDecorators, List<ParameterResolver<? super DeserializingMessage>> parameterResolvers, Map<MessageType, DispatchInterceptor> dispatchInterceptors, Function<Class<?>, HandlerRepository> handlerRepositorySupplier, RepositoryProvider repositoryProvider) protected MethodInvocationValidator<? super DeserializingMessage> DefaultFluxzero.Builder.methodInvocationValidator(MessageType messageType) DefaultFluxzero.tracking(MessageType messageType) Method parameters in io.fluxzero.sdk.configuration with type arguments of type MessageTypeModifier and TypeMethodDescriptionprotected GenericGatewayDefaultFluxzero.Builder.createRequestGateway(Client client, MessageType messageType, String topic, RequestHandler requestHandler, Map<MessageType, DispatchInterceptor> dispatchInterceptors, Map<MessageType, HandlerDecorator> handlerDecorators, List<ParameterResolver<? super DeserializingMessage>> parameterResolvers, Function<Class<?>, HandlerRepository> handlerRepositorySupplier, RepositoryProvider repositoryProvider, ResponseMapper responseMapper) protected FluxzeroDefaultFluxzero.Builder.doBuild(Map<MessageType, ? extends Tracking> trackingSupplier, Function<String, ? extends GenericGateway> customGatewaySupplier, CommandGateway commandGateway, QueryGateway queryGateway, EventGateway eventGateway, ResultGateway resultGateway, ErrorGateway errorGateway, MetricsGateway metricsGateway, WebRequestGateway webRequestGateway, AggregateRepository aggregateRepository, SnapshotStore snapshotStore, EventStore eventStore, KeyValueStore keyValueStore, DocumentStore documentStore, MessageScheduler messageScheduler, UserProvider userProvider, Cache cache, Serializer serializer, CorrelationDataProvider correlationDataProvider, IdentityProvider identityProvider, PropertySource propertySource, DelegatingClock clock, TaskScheduler taskScheduler, Client client, ThrowingRunnable shutdownHandler) protected HandlerRegistryDefaultFluxzero.Builder.localHandlerRegistry(MessageType messageType, Map<MessageType, HandlerDecorator> handlerDecorators, List<ParameterResolver<? super DeserializingMessage>> parameterResolvers, Map<MessageType, DispatchInterceptor> dispatchInterceptors, Function<Class<?>, HandlerRepository> handlerRepositorySupplier, RepositoryProvider repositoryProvider) -
Uses of MessageType in io.fluxzero.sdk.configuration.client
Methods in io.fluxzero.sdk.configuration.client with parameters of type MessageTypeModifier and TypeMethodDescriptionvoidClientDispatchMonitor.accept(MessageType messageType, String topic, String namespace, List<SerializedMessage> messages) Called when a batch of messages is dispatched by the client.protected abstract GatewayClientAbstractClient.createGatewayClient(MessageType messageType, String topic) Subclasses must implement this method to return aGatewayClientfor the given message type and topic.protected GatewayClientLocalClient.createGatewayClient(MessageType messageType, String topic) protected GatewayClientWebSocketClient.createGatewayClient(MessageType messageType, String topic) protected abstract TrackingClientAbstractClient.createTrackingClient(MessageType messageType, String topic) Subclasses must implement this method to return aTrackingClientfor the given message type and topic.protected TrackingClientLocalClient.createTrackingClient(MessageType messageType, String topic) protected TrackingClientWebSocketClient.createTrackingClient(MessageType messageType, String topic) AbstractClient.getGatewayClient(MessageType messageType, String topic) Returns the memoizedGatewayClientfor the given message type and topic.default GatewayClientClient.getGatewayClient(MessageType messageType) Returns aGatewayClientfor the given message type using the default topic (typicallynull).Client.getGatewayClient(MessageType messageType, String topic) Returns aGatewayClientfor the given message type and topic.AbstractClient.getTrackingClient(MessageType messageType, String topic) default TrackingClientClient.getTrackingClient(MessageType messageType) Returns aTrackingClientfor the given message type using the default topic.Client.getTrackingClient(MessageType messageType, String topic) Returns aTrackingClientfor the given message type and topic.AbstractClient.monitorDispatch(ClientDispatchMonitor monitor, MessageType... messageTypes) Client.monitorDispatch(ClientDispatchMonitor monitor, MessageType... messageTypes) Registers aClientDispatchMonitorto receive hooks and diagnostics when messages of the givenMessageTypes are dispatched from this client.WebSocketClient.ClientConfig.withGatewaySessions(MessageType messageType, int count) Returns a newClientConfigwith a modified gateway session count for the specified message type.WebSocketClient.ClientConfig.withTrackingConfig(MessageType messageType, WebSocketClient.TrackingClientConfig trackingConfig) Returns a newClientConfigwith a modified tracking config for the specified message type. -
Uses of MessageType in io.fluxzero.sdk.publishing
Methods in io.fluxzero.sdk.publishing with parameters of type MessageTypeModifier and TypeMethodDescriptionstatic Optional<? extends DispatchInterceptor> AdhocDispatchInterceptor.getAdhocInterceptor(MessageType messageType) Returns the current thread-local ad hoc interceptor for the givenMessageType, if present.AdhocDispatchInterceptor.interceptDispatch(Message message, MessageType messageType, String topic) Intercepts a message before dispatch for the given message type and topic.DispatchInterceptor.interceptDispatch(Message message, MessageType messageType, String topic) Intercepts the dispatch of a message before it is serialized and published or locally handled.AdhocDispatchInterceptor.modifySerializedMessage(SerializedMessage serializedMessage, Message message, MessageType messageType, String topic) Optionally modifies the serialized message before dispatch, delegating to any registered ad hoc interceptor for the current thread.default SerializedMessageDispatchInterceptor.modifySerializedMessage(SerializedMessage serializedMessage, Message message, MessageType messageType, String topic) Allows modifications to the serialized representation of the message before it is actually published.voidAdhocDispatchInterceptor.monitorDispatch(Message message, MessageType messageType, String topic, String namespace) Optionally monitors a dispatched message using any registered ad hoc interceptor for the current thread.default voidDispatchInterceptor.monitorDispatch(Message message, MessageType messageType, String topic, String namespace) Hook to observe the dispatch of a message.static voidAdhocDispatchInterceptor.runWithAdhocInterceptor(Runnable task, DispatchInterceptor adhocInterceptor, MessageType... messageTypes) Executes the givenRunnablewhile temporarily enabling the provided interceptor for the specified message types.static <T> TAdhocDispatchInterceptor.runWithAdhocInterceptor(Callable<T> task, DispatchInterceptor adhocInterceptor, MessageType... messageTypes) Executes the givenCallablewhile temporarily enabling the provided interceptor for the specified message types.Constructors in io.fluxzero.sdk.publishing with parameters of type MessageTypeModifierConstructorDescriptionDefaultRequestHandler(Client client, MessageType resultType) Constructs a DefaultRequestHandler with the specified client and message type, and a default timeout of 200 seconds. -
Uses of MessageType in io.fluxzero.sdk.publishing.client
Constructors in io.fluxzero.sdk.publishing.client with parameters of type MessageTypeModifierConstructorDescriptionWebsocketGatewayClient(String endPointUrl, WebSocketClient client, MessageType type, String topic) Constructs a new WebsocketGatewayClient instance using the specified parameters.WebsocketGatewayClient(URI endPointUri, WebSocketClient client, MessageType type, String topic, boolean sendMetrics) Constructs a new WebsocketGatewayClient instance using the specified parameters. -
Uses of MessageType in io.fluxzero.sdk.publishing.correlation
Methods in io.fluxzero.sdk.publishing.correlation with parameters of type MessageTypeModifier and TypeMethodDescriptionCorrelationDataProvider.getCorrelationData(Client client, SerializedMessage currentMessage, MessageType messageType) Returns correlation metadata derived from a serialized message and optional context.CorrelatingInterceptor.interceptDispatch(Message message, MessageType messageType, String topic) -
Uses of MessageType in io.fluxzero.sdk.publishing.dataprotection
Methods in io.fluxzero.sdk.publishing.dataprotection with parameters of type MessageTypeModifier and TypeMethodDescriptionDataProtectionInterceptor.interceptDispatch(Message m, MessageType messageType, String topic) -
Uses of MessageType in io.fluxzero.sdk.publishing.routing
Methods in io.fluxzero.sdk.publishing.routing with parameters of type MessageTypeModifier and TypeMethodDescriptionMessageRoutingInterceptor.interceptDispatch(Message message, MessageType messageType, String topic) Returns the unmodifiedMessageas this interceptor only modifies the serialized form.MessageRoutingInterceptor.modifySerializedMessage(SerializedMessage serializedMessage, Message m, MessageType messageType, String topic) Computes and sets the routing segment on the serialized message if not already present. -
Uses of MessageType in io.fluxzero.sdk.scheduling
Methods in io.fluxzero.sdk.scheduling with parameters of type MessageTypeModifier and TypeMethodDescriptionSchedulingInterceptor.interceptDispatch(Message message, MessageType messageType, String topic) -
Uses of MessageType in io.fluxzero.sdk.tracking.client
Methods in io.fluxzero.sdk.tracking.client that return MessageTypeModifier and TypeMethodDescriptionCachingTrackingClient.getMessageType()TrackingClient.getMessageType()Returns theMessageType(e.g., COMMAND, EVENT, QUERY) associated with this tracking client.Methods in io.fluxzero.sdk.tracking.client with parameters of type MessageTypeModifier and TypeMethodDescriptionstatic RegistrationDefaultTracker.start(Consumer<List<SerializedMessage>> consumer, MessageType messageType, ConsumerConfiguration config, Client client) Starts one or more trackers.static RegistrationDefaultTracker.start(Consumer<List<SerializedMessage>> consumer, MessageType messageType, ConsumerConfiguration config, Fluxzero fluxzero) Starts one or more trackers.static RegistrationDefaultTracker.start(Consumer<List<SerializedMessage>> consumer, MessageType messageType, String topic, ConsumerConfiguration config, Client client) Starts one or more trackers.static RegistrationDefaultTracker.start(Consumer<List<SerializedMessage>> consumer, MessageType messageType, String topic, ConsumerConfiguration config, Fluxzero fluxzero) Starts one or more trackers.Constructors in io.fluxzero.sdk.tracking.client with parameters of type MessageTypeModifierConstructorDescriptionInMemoryMessageStore(MessageType messageType) LocalTrackingClient(MessageType messageType, String topic, Duration messageExpiration) LocalTrackingClient(MessageStore messageStore, MessageType messageType) LocalTrackingClient(MessageStore messageStore, MessageType messageType, String topic) WebsocketTrackingClient(String endPointUrl, WebSocketClient client, MessageType type, String topic) WebsocketTrackingClient(URI endPointUri, WebSocketClient client, MessageType type, String topic, boolean sendMetrics) -
Uses of MessageType in io.fluxzero.sdk.tracking.handling
Methods in io.fluxzero.sdk.tracking.handling that return types with arguments of type MessageTypeModifier and TypeMethodDescriptionprotected Optional<MessageType> TriggerParameterResolver.getTriggerMessageType(HasMessage message) Methods in io.fluxzero.sdk.tracking.handling with parameters of type MessageTypeModifier and TypeMethodDescriptionprotected Class<? extends Annotation> DefaultHandlerFactory.getHandlerAnnotation(MessageType messageType) protected Optional<DeserializingMessage> TriggerParameterResolver.getTriggerMessage(long index, Class<?> type, MessageType messageType) Constructors in io.fluxzero.sdk.tracking.handling with parameters of type MessageTypeModifierConstructorDescriptionDefaultHandlerFactory(MessageType messageType, HandlerDecorator defaultDecorator, List<ParameterResolver<? super DeserializingMessage>> parameterResolvers, MethodInvocationValidator<? super DeserializingMessage> methodInvocationValidator, Function<Class<?>, HandlerRepository> handlerRepositorySupplier, RepositoryProvider repositoryProvider) DefaultHandlerFactory(MessageType messageType, HandlerDecorator defaultDecorator, List<ParameterResolver<? super DeserializingMessage>> parameterResolvers, Function<Class<?>, HandlerRepository> handlerRepositorySupplier, RepositoryProvider repositoryProvider) -
Uses of MessageType in io.fluxzero.sdk.tracking.handling.authentication
Methods in io.fluxzero.sdk.tracking.handling.authentication with parameters of type MessageTypeModifier and TypeMethodDescriptionAuthenticatingInterceptor.interceptDispatch(Message m, MessageType messageType, String topic) -
Uses of MessageType in io.fluxzero.sdk.web
Methods in io.fluxzero.sdk.web with parameters of type MessageTypeModifier and TypeMethodDescriptionWebResponseCompressingInterceptor.interceptDispatch(Message message, MessageType messageType, String topic) No-op for message interception.WebsocketResponseInterceptor.interceptDispatch(Message message, MessageType messageType, String topic) Intercepts and conditionally modifies an outgoing message in the context of a WebSocket request.WebResponseCompressingInterceptor.modifySerializedMessage(SerializedMessage response, Message message, MessageType type, String topic) Compresses the given response message using GZIP if the request supports compression and the response meets compression criteria. -
Uses of MessageType in io.fluxzero.testserver.websocket
Constructors in io.fluxzero.testserver.websocket with parameters of type MessageTypeModifierConstructorDescriptionConsumerEndpoint(MessageStore messageStore, MessageType messageType)