Annotation Interface WriteBuffer


@Target(TYPE) @Retention(RUNTIME) public @interface WriteBuffer
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    what to do when max buffer entries is reached WRITE_NEW: write newest entry (synchronous and not add to buffer) WRITE_OLD: write some old entries (and remove from buffer) DEL_OLD: remove old entries from buffer IGNORE_NEW: just ignore incoming JUST_WARN: increase buffer and warn about it
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
     
    int
    max size of write Buffer entries,0 means unlimited.
     
    int
    if 0 - use default timeout set in Morphium / morphiumConfig if -1: wait till buffer is full - does not make sense to use with DEL-Strategy
    boolean
     
  • Element Details

    • strategy

      Default:
      WAIT
    • value

      boolean value
      Default:
      true
    • ordered

      boolean ordered
      Default:
      true
    • size

      int size
      max size of write Buffer entries,0 means unlimited. STRATEGY is meaningless then
      Returns:
      Default:
      0
    • timeout

      int timeout
      if 0 - use default timeout set in Morphium / morphiumConfig if -1: wait till buffer is full - does not make sense to use with DEL-Strategy
      Returns:
      Default:
      0