Class InMemoryDedupeStore

java.lang.Object
org.j7m.middleware.reliability.InMemoryDedupeStore
All Implemented Interfaces:
org.j7m.middleware.api.reliability.DedupeStore

public final class InMemoryDedupeStore extends Object implements org.j7m.middleware.api.reliability.DedupeStore
Non-durable in-memory duplicate detection store.

The store is thread-safe and intended only for semantics tests and non-durable development use. It is not crash-safe, not replicated, not a queue, not an outbox/inbox, and not acceptable as Phase 6.2 or Phase 6.3 durable reliability work.

  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an empty non-durable store.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.j7m.middleware.api.reliability.DedupeResult
    checkAndRecord(org.j7m.middleware.api.reliability.DedupeEntry entry, org.j7m.middleware.api.reliability.DuplicateDetectionPolicy policy)
    org.j7m.middleware.api.reliability.DedupeStoreStatus

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • InMemoryDedupeStore

      public InMemoryDedupeStore()
      Creates an empty non-durable store.
  • Method Details

    • checkAndRecord

      public org.j7m.middleware.api.reliability.DedupeResult checkAndRecord(org.j7m.middleware.api.reliability.DedupeEntry entry, org.j7m.middleware.api.reliability.DuplicateDetectionPolicy policy)
      Specified by:
      checkAndRecord in interface org.j7m.middleware.api.reliability.DedupeStore
    • status

      public org.j7m.middleware.api.reliability.DedupeStoreStatus status()
      Specified by:
      status in interface org.j7m.middleware.api.reliability.DedupeStore