Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

  • T

Hierarchy

  • ReadResultSet

Implemented by

Index

Methods

get

  • get(index: number): T

getReadCount

  • getReadCount(): number
  • Returns the number of items that have been read before filtering.

    If no filter is set, then the readCount will be equal to {@link #size}. But if a filter is applied, it could be that items are read, but are filtered out. So if you are trying to make another read based on the ReadResultSet then you should increment the sequence by readCount and not by size. Otherwise you will be re-reading the same filtered messages.

    Returns number

    the number of items read (including the filtered ones).

getSequence

  • getSequence(index: number): Long
  • Return the sequence number for the item at the given index. The method throws if there are no sequences available. This can happen when the cluster version is lower than 3.9.

    throws

    UnsupportedOperationError if server version is 3.8 or lower.

    requires

    Hazelcast 3.9

    Parameters

    • index: number

    Returns Long

    the sequence number for the ringbuffer item undefined if the index is out of bounds.

size

  • size(): number

Generated using TypeDoc