Class

com.github.dwhjames.awswrap.dynamodb.ConcurrentBatchWriter

WriteGroup

Related Doc: package ConcurrentBatchWriter

Permalink

class WriteGroup[Metadata] extends AnyRef

A class for managing the synchronization of a group of writes.

This class facilitates the grouping of write requests.

Metadata

the type of the metadata tag

Source
ConcurrentBatchWriter.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. WriteGroup
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new WriteGroup(metadata: Metadata, errorQueue: Queue[FailedBatch[Metadata]])

    Permalink

    metadata

    the metadata that tags this group of writes

    errorQueue

    a queue on which to return errors from workers in the thread pool (must be thread-safe)

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def awaitCompletionOfAllWrites(): Boolean

    Permalink

    Wait until all writes that have been queued have been written.

    Wait until all writes that have been queued have been written.

    Block the calling thread until all writes in the queue have been run, either with success or failure. If all the queued writes complete successfully, then this method returns true. If false, then failed batches will have been recorded in the error queue.

    Note that this is an blocking call

    returns

    true if the group of writes completed without errors

    Annotations
    @throws( classOf[InterruptedException] )
    Exceptions thrown

    java.lang.InterruptedException if interrupted while waiting

  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  12. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. def queueWriteRequests(requests: Iterable[WriteRequest]): Unit

    Permalink

    Add an Iterable collection of WriteRequests to the writer queue.

    Add an Iterable collection of WriteRequests to the writer queue.

    Blockingly add write requests to the queue of writes. If the collection is larger than 25, then the writes are queued in groups of 25.

    requests

    an iterable collection of WriteRequests

    Annotations
    @throws( classOf[InterruptedException] )
    Exceptions thrown

    java.lang.InterruptedException if interrupted while waiting

  17. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  18. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  19. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped