All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.cloudstate.javasupport.eventsourced.EventSourcedEntity Maven / Gradle / Ivy

There is a newer version: 0.6.0
Show newest version
package io.cloudstate.javasupport.eventsourced;

import io.cloudstate.javasupport.impl.CloudStateAnnotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/** An event sourced entity. */
@CloudStateAnnotation
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface EventSourcedEntity {
  /**
   * The name of the persistence id.
   *
   * 

If not specifed, defaults to the entities unqualified classname. It's strongly recommended * that you specify it explicitly. */ String persistenceId() default ""; /** * Specifies how snapshots of the entity state should be made: Zero means use default from * configuration file. (Default) Any negative value means never snapshot. Any positive value means * snapshot at-or-after that number of events. */ int snapshotEvery() default 0; }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy