Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  * Copyright (c) 2010. Axon Framework
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * See the License for the specific language governing permissions and
 * limitations under the License.
package org.axonframework.saga;
Interface toward the Manager of one or more types of Saga. The SagaManager is an infrastructure object responsible for redirecting published Events to the correct Saga instances. The SagaManager will also manage the life cycle of the Saga, based on these Events.

Saga Managers must be thread safe. Implementations may choose to provide locking, such that access to the Saga instances they manage is also thread safe.

Allard Buijze
public interface SagaManager extends EventListener {

Handles the event by passing it to all Saga instances that have an Association Value found in the given event.

event the event to handle
    void handle(Event event);
New to GrepCode? Check out our FAQ X