Class CacheContinuousQueryEntry
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.query.continuous.CacheContinuousQueryEntry
-
- All Implemented Interfaces:
Serializable,GridCacheDeployable,Message
public class CacheContinuousQueryEntry extends Object implements GridCacheDeployable, Message
Continuous query entry.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.apache.ignite.plugin.extensions.communication.Message
DIRECT_TYPE_SIZE
-
-
Constructor Summary
Constructors Constructor Description CacheContinuousQueryEntry()Required byMessage.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CacheContinuousQueryEntrycreateFilteredEntry(int cacheId, int partId, AffinityTopologyVersion topVer, long cntr, long filtered)GridDeploymentInfodeployInfo()shortdirectType()Gets message type.static @Nullable javax.cache.event.EventTypeeventTypeFromOrdinal(int ord)bytefieldsCount()Gets fields count.byteflags()voidonAckReceived()Method called when ack message received.voidprepare(GridDeploymentInfo depInfo)Prepare deployment information.booleanreadFrom(ByteBuffer buf, MessageReader reader)Reads this message from provided byte buffer.StringtoString()booleanwriteTo(ByteBuffer buf, MessageWriter writer)Writes this message to provided byte buffer.
-
-
-
Constructor Detail
-
CacheContinuousQueryEntry
public CacheContinuousQueryEntry()
Required byMessage.
-
-
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:
onAckReceivedin interfaceMessage
-
prepare
public void prepare(GridDeploymentInfo depInfo)
Prepare deployment information.- Specified by:
preparein interfaceGridCacheDeployable- Parameters:
depInfo- Deployment information.
-
deployInfo
public GridDeploymentInfo deployInfo()
- Specified by:
deployInfoin interfaceGridCacheDeployable- Returns:
- Deployment bean.
-
directType
public short directType()
Gets message type.- Specified by:
directTypein interfaceMessage- Returns:
- Message type.
-
writeTo
public boolean writeTo(ByteBuffer buf, MessageWriter writer)
Writes this message to provided byte buffer.
-
readFrom
public boolean readFrom(ByteBuffer buf, MessageReader reader)
Reads this message from provided byte buffer.
-
fieldsCount
public byte fieldsCount()
Gets fields count.- Specified by:
fieldsCountin interfaceMessage- Returns:
- Fields count.
-
-