Class ReplicaSetOffsetContext

  • All Implemented Interfaces:
    OffsetContext

    @ThreadSafe
    public class ReplicaSetOffsetContext
    extends Object
    implements OffsetContext
    An OffsetContext implementation that is specific to a single ReplicaSet. The mongodb connector operates multiple threads during snapshot and streaming modes where each ReplicaSet is processed individually and the offsets that pertain to that ReplicaSet should be maintained in such a way that is considered thread-safe. This implementation offers such safety.
    Author:
    Chris Cranford