org.qi4j.library.eventsourcing.domain.source.jdbm

## Class JdbmEventStoreService.JdbmEventStoreMixin

- java.lang.Object
- - org.qi4j.library.eventsourcing.domain.source.AbstractEventStoreMixin
  - - org.qi4j.library.eventsourcing.domain.source.jdbm.JdbmEventStoreService.JdbmEventStoreMixin

- All Implemented Interfaces:
    EventManagement, EventSource, EventStore, EventStoreActivation, EventStream
  Enclosing interface:
    JdbmEventStoreService

      public static class JdbmEventStoreService.JdbmEventStoreMixin
      extends AbstractEventStoreMixin
      implements EventManagement, EventSource

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface org.qi4j.library.eventsourcing.domain.source.EventStoreActivation

      `EventStoreActivation.Activator`

  - ### Field Summary

    - ### Fields inherited from class org.qi4j.library.eventsourcing.domain.source.AbstractEventStoreMixin

      `domainEventType, eventsType, identity, lock, logger, module`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `JdbmEventStoreService.JdbmEventStoreMixin()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `activateEventStore()`
    `long` | `count()`
    `Input<UnitOfWorkDomainEventsValue,IOException>` | `events(long offset, long limit)` Get list of UnitOfWorkDomainEventsValue after the given offset.
    `void` | `passivateEventStore()`
    `Output<String,IOException>` | `restore()` Output used to restore events from a backup
    `protected Output<UnitOfWorkDomainEventsValue,IOException>` | `storeEvents0()`

    - ### Methods inherited from class org.qi4j.library.eventsourcing.domain.source.AbstractEventStoreMixin

      `lock, registerListener, storeEvents, unregisterListener`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### JdbmEventStoreService.JdbmEventStoreMixin

          public JdbmEventStoreService.JdbmEventStoreMixin()

  - ### Method Detail

    - #### activateEventStore

          public void activateEventStore()
                                  throws Exception

      Specified by:
        `activateEventStore` in interface `EventStoreActivation`
      Overrides:
        `activateEventStore` in class `AbstractEventStoreMixin`
      Throws:
        `Exception`

    - #### passivateEventStore

          public void passivateEventStore()
                                   throws Exception

      Specified by:
        `passivateEventStore` in interface `EventStoreActivation`
      Overrides:
        `passivateEventStore` in class `AbstractEventStoreMixin`
      Throws:
        `Exception`

    - #### restore

          public Output<String,IOException> restore()

      Description copied from interface: `EventManagement`
      Output used to restore events from a backup
      Specified by:
        `restore` in interface `EventManagement`
      Returns:
        The Output function to restore events from a backup.

    - #### events

          public Input<UnitOfWorkDomainEventsValue,IOException> events(long offset,
                                                              long limit)

      Description copied from interface: `EventSource`
      Get list of UnitOfWorkDomainEventsValue after the given offset.

      To get the first set of events, use 0 as offset parameter to get events from the start.

      Specified by:
        `events` in interface `EventSource`
      Parameters:
        `offset` - where in the list of events to start
        `limit` - maximum number of events returned
      Returns:
        list of UnitOfWorkDomainEventsValue after the given offset

    - #### count

          public long count()

      Specified by:
        `count` in interface `EventSource`

    - #### storeEvents0

          protected Output<UnitOfWorkDomainEventsValue,IOException> storeEvents0()

      Specified by:
        `storeEvents0` in class `AbstractEventStoreMixin`