Tabnine Logo
BatchingEventStorageEngine.fetchDomainEvents
Code IndexAdd Tabnine to your IDE (free)

How to use
fetchDomainEvents
method
in
org.axonframework.eventsourcing.eventstore.BatchingEventStorageEngine

Best Java code snippets using org.axonframework.eventsourcing.eventstore.BatchingEventStorageEngine.fetchDomainEvents (Showing top 3 results out of 315)

origin: AxonFramework/AxonFramework

@Override
protected Stream<? extends DomainEventData<?>> readEventData(String identifier, long firstSequenceNumber) {
  EventStreamSpliterator<? extends DomainEventData<?>> spliterator = new EventStreamSpliterator<>(
      lastItem -> fetchDomainEvents(identifier,
                     lastItem == null ? firstSequenceNumber : lastItem.getSequenceNumber() + 1,
                     batchSize), batchSize, fetchForAggregateUntilEmpty());
  return StreamSupport.stream(spliterator, false);
}
origin: org.axonframework/axon-eventsourcing

@Override
protected Stream<? extends DomainEventData<?>> readEventData(String identifier, long firstSequenceNumber) {
  EventStreamSpliterator<? extends DomainEventData<?>> spliterator = new EventStreamSpliterator<>(
      lastItem -> fetchDomainEvents(identifier,
                     lastItem == null ? firstSequenceNumber : lastItem.getSequenceNumber() + 1,
                     batchSize), batchSize, fetchForAggregateUntilEmpty());
  return StreamSupport.stream(spliterator, false);
}
origin: org.axonframework/axon-core

@Override
protected Stream<? extends DomainEventData<?>> readEventData(String identifier, long firstSequenceNumber) {
  EventStreamSpliterator<? extends DomainEventData<?>> spliterator = new EventStreamSpliterator<>(
      lastItem -> fetchDomainEvents(identifier,
                     lastItem == null ? firstSequenceNumber : lastItem.getSequenceNumber() + 1,
                     batchSize), batchSize, fetchForAggregateUntilEmpty());
  return StreamSupport.stream(spliterator, false);
}
org.axonframework.eventsourcing.eventstoreBatchingEventStorageEnginefetchDomainEvents

Javadoc

Returns a batch of events published by an aggregate with given aggregateIdentifier.

The sequence numbers in the returned batch should be ordered by sequence number. The first event in the batch should have a sequence number equal to or larger than given firstSequenceNumber. Implementations should make sure the returned batch does not contain gaps between events due to uncommitted storage transactions.

If the returned number of entries is smaller than the given batchSize it is assumed that the storage holds no further applicable entries.

Popular methods of BatchingEventStorageEngine

  • appendEvents
  • fetchForAggregateUntilEmpty
    Specifies whether the #readEventData(String,long) should proceed fetching events for an aggregate un
  • fetchTrackedEvents
    Returns a batch of serialized event data entries in the event storage that have a TrackingToken grea
  • readEvents
  • batchSize
    Returns the maximum number of event entries to be fetched per batch.

Popular in Java

  • Reactive rest calls using spring rest template
  • notifyDataSetChanged (ArrayAdapter)
  • getExternalFilesDir (Context)
  • startActivity (Activity)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • JFileChooser (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Top plugins for WebStorm
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