public class MessageHolderWithVariants extends AbstractMessageHolder
| Modifier and Type | Field and Description |
|---|---|
static int |
INITIAL_SERIAL_ID
The serial ID of the first (initial) batch of tokens for given Push Message
|
| Constructor and Description |
|---|
MessageHolderWithVariants(FlatPushMessageInformation pushMessageInformation,
UnifiedPushMessage unifiedPushMessage,
VariantType variantType,
Collection<Variant> variants)
Constructs holder that denotes first request for processing.
|
MessageHolderWithVariants(FlatPushMessageInformation pushMessageInformation,
UnifiedPushMessage unifiedPushMessage,
VariantType variantType,
Collection<Variant> variants,
int lastSerialId,
String lastTokenFromPreviousBatch)
Constructs holder that denotes subsequent request for processing given push message, continuing from
lastTokenFromPreviousBatch where the previous request ended. |
| Modifier and Type | Method and Description |
|---|---|
int |
getLastSerialId() |
String |
getLastTokenFromPreviousBatch() |
Collection<Variant> |
getVariants() |
VariantType |
getVariantType() |
getPushMessageInformation, getUnifiedPushMessagepublic static final int INITIAL_SERIAL_ID
public MessageHolderWithVariants(FlatPushMessageInformation pushMessageInformation, UnifiedPushMessage unifiedPushMessage, VariantType variantType, Collection<Variant> variants)
lastTokenFromPreviousBatch as first request will start from first device token in database.pushMessageInformation - the push message info objectunifiedPushMessage - the push messagevariantType - variant type infovariants - list of effected variantspublic MessageHolderWithVariants(FlatPushMessageInformation pushMessageInformation, UnifiedPushMessage unifiedPushMessage, VariantType variantType, Collection<Variant> variants, int lastSerialId, String lastTokenFromPreviousBatch)
lastTokenFromPreviousBatch where the previous request ended.pushMessageInformation - the push message info objectunifiedPushMessage - the push messagevariantType - variant type infovariants - list of effected variantslastSerialId - last id from previous batchlastTokenFromPreviousBatch - last token from previous streampublic VariantType getVariantType()
public Collection<Variant> getVariants()
public int getLastSerialId()
public String getLastTokenFromPreviousBatch()
Copyright © 2017 JBoss by Red Hat. All rights reserved.