Package 

Interface PersistenceStrategy.Factory


  • 
    public interface PersistenceStrategy.Factory
    
                        

    A factory used to create an instance of a PersistenceStrategy.

    Each instance of a persistence strategy should have independent storage. Data written to one instance must not be readable from another one.

    • Method Summary

      Modifier and Type Method Description
      abstract PersistenceStrategy create(String identifier, Integer maxItemsPerBatch, Long maxBatchSize) Creates an instance of a PersistenceStrategy.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • create

         abstract PersistenceStrategy create(String identifier, Integer maxItemsPerBatch, Long maxBatchSize)

        Creates an instance of a PersistenceStrategy.

        Parameters:
        identifier - the identifier for the persistence strategy.
        maxItemsPerBatch - the maximum number of individual events in a batch
        maxBatchSize - the maximum size (in bytes) of a complete batch