Class CacheContinuousQueryEntry

    • Constructor Detail

      • CacheContinuousQueryEntry

        public CacheContinuousQueryEntry()
        Required by Message.
    • Method Detail

      • eventTypeFromOrdinal

        @Nullable
        public static @Nullable javax.cache.event.EventType eventTypeFromOrdinal​(int ord)
        Parameters:
        ord - Event type ordinal value.
        Returns:
        Event type.
      • createFilteredEntry

        public static CacheContinuousQueryEntry createFilteredEntry​(int cacheId,
                                                                    int partId,
                                                                    AffinityTopologyVersion topVer,
                                                                    long cntr,
                                                                    long filtered)
        Parameters:
        cacheId - Cache id.
        partId - Partition id entry related to.
        topVer - Topology version.
        cntr - Update counter entry related to.
        filtered - Number of filtered entries prior to current one.
        Returns:
        Entry instance.
      • flags

        public byte flags()
        Returns:
        Flags.
      • onAckReceived

        public void onAckReceived()
        Method called when ack message received.
        Specified by:
        onAckReceived in interface Message
      • directType

        public short directType()
        Gets message type.
        Specified by:
        directType in interface Message
        Returns:
        Message type.
      • writeTo

        public boolean writeTo​(ByteBuffer buf,
                               MessageWriter writer)
        Writes this message to provided byte buffer.
        Specified by:
        writeTo in interface Message
        Parameters:
        buf - Byte buffer.
        writer - Writer.
        Returns:
        Whether message was fully written.
      • readFrom

        public boolean readFrom​(ByteBuffer buf,
                                MessageReader reader)
        Reads this message from provided byte buffer.
        Specified by:
        readFrom in interface Message
        Parameters:
        buf - Byte buffer.
        reader - Reader.
        Returns:
        Whether message was fully read.
      • fieldsCount

        public byte fieldsCount()
        Gets fields count.
        Specified by:
        fieldsCount in interface Message
        Returns:
        Fields count.