Tabnine Logo
EventProcessingConfiguration.eventProcessorByProcessingGroup
Code IndexAdd Tabnine to your IDE (free)

How to use
eventProcessorByProcessingGroup
method
in
org.axonframework.config.EventProcessingConfiguration

Best Java code snippets using org.axonframework.config.EventProcessingConfiguration.eventProcessorByProcessingGroup (Showing top 6 results out of 315)

origin: AxonFramework/AxonFramework

/**
 * Returns an {@link EventProcessor} by the given {@code processingGroup} if present, matching the given
 * {@code expectedType}.
 *
 * @param processingGroup a {@link String} specifying the processing group of an {@link EventProcessor}
 * @param expectedType    the type of the {@link EventProcessor} to return
 * @param <T>             the type of the expected {@link EventProcessor}
 * @return an {@link Optional} referencing the {@link EventProcessor}, if present and of expected type
 */
default <T extends EventProcessor> Optional<T> eventProcessorByProcessingGroup(String processingGroup,
                                        Class<T> expectedType) {
  return eventProcessorByProcessingGroup(processingGroup).filter(expectedType::isInstance)
                              .map(expectedType::cast);
}
origin: AxonFramework/AxonFramework

/**
 * Obtains an Saga {@link EventProcessor} implementation for the given {@code sagaType}.
 *
 * @param sagaType the type of Saga for which to get the Event Processor
 * @param <T>      the type of the expected {@link EventProcessor}
 * @return an {@link Optional} specifying whether an {@link EventProcessor} for the given {@link SagaConfiguration}
 * exists
 */
default <T extends EventProcessor> Optional<T> sagaEventProcessor(Class<?> sagaType) {
  return eventProcessorByProcessingGroup(sagaProcessingGroup(sagaType));
}
origin: org.axonframework/axon-core

/**
 * Returns the Event Processor by the given {@code processingGroup}, if present and of the given {@code
 * expectedType}.
 *
 * @param processingGroup The name of the processing group
 * @param expectedType    The type of processor expected
 * @param <T>             The type of processor expected
 * @return an Optional referencing the processor, if present and of expected type
 */
public <T extends EventProcessor> Optional<T> eventProcessorByProcessingGroup(String processingGroup,
                                       Class<T> expectedType) {
  return eventProcessorByProcessingGroup(processingGroup).filter(expectedType::isInstance)
                              .map(expectedType::cast);
}
origin: org.axonframework/axon-configuration

/**
 * Returns an {@link EventProcessor} by the given {@code processingGroup} if present, matching the given
 * {@code expectedType}.
 *
 * @param processingGroup a {@link String} specifying the processing group of an {@link EventProcessor}
 * @param expectedType    the type of the {@link EventProcessor} to return
 * @param <T>             the type of the expected {@link EventProcessor}
 * @return an {@link Optional} referencing the {@link EventProcessor}, if present and of expected type
 */
default <T extends EventProcessor> Optional<T> eventProcessorByProcessingGroup(String processingGroup,
                                        Class<T> expectedType) {
  return eventProcessorByProcessingGroup(processingGroup).filter(expectedType::isInstance)
                              .map(expectedType::cast);
}
origin: org.axonframework/axon-configuration

/**
 * Obtains an Saga {@link EventProcessor} implementation for the given {@code sagaType}.
 *
 * @param sagaType the type of Saga for which to get the Event Processor
 * @param <T>      the type of the expected {@link EventProcessor}
 * @return an {@link Optional} specifying whether an {@link EventProcessor} for the given {@link SagaConfiguration}
 * exists
 */
default <T extends EventProcessor> Optional<T> sagaEventProcessor(Class<?> sagaType) {
  return eventProcessorByProcessingGroup(sagaProcessingGroup(sagaType));
}
origin: org.axonframework/axon-core

/**
 * Returns the processor that processed events for the Saga in this Configuration.
 *
 * @return The EventProcessor defined in this Configuration
 *
 * @throws IllegalStateException when this configuration hasn't been initialized yet
 */
public EventProcessor getProcessor() {
  return eventProcessingConfiguration().eventProcessorByProcessingGroup(processorInfo.getProcessingGroup())
                     .orElse(null);
}
org.axonframework.configEventProcessingConfigurationeventProcessorByProcessingGroup

Javadoc

Obtains Event Processor by processing group name. This method is to be called after Event Processor Registry is initialized.

Popular methods of EventProcessingConfiguration

  • eventProcessor
    Returns the Event Processor with the given name, if present and of the given expectedType.
  • eventProcessors
    Obtains all registered event processors. This method is to be called after Event Processor Registry
  • registerSubscribingEventProcessor
    Register a subscribing event processor with given name that subscribes to the given messageSource. T
  • <init>
  • buildEventProcessor
  • configureErrorHandler
    Configures the default org.axonframework.eventhandling.ErrorHandler for any org.axonframework.eventh
  • configureMessageMonitor
    Configures the factory to create the Message Monitor for the EventProcessor of the given name. This
  • configureRollbackConfiguration
    Configures a RollbackConfiguration for the EventProcessor of the given name. This overrides the defa
  • configureTransactionManager
    Configures a TransactionManager for the EventProcessor of the given name. This overrides the default
  • getErrorHandler
  • getMessageMonitor
  • getRollbackConfiguration
  • getMessageMonitor,
  • getRollbackConfiguration,
  • getTransactionManager,
  • listenerInvocationErrorHandler,
  • processorNameForProcessingGroup,
  • registerEventProcessor,
  • registerEventProcessorFactory,
  • registerHandlerInterceptor,
  • registerHandlerInvoker

Popular in Java

  • Finding current android device location
  • runOnUiThread (Activity)
  • setContentView (Activity)
  • onCreateOptionsMenu (Activity)
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • ImageIO (javax.imageio)
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now