Class PushStatusStoreUtils


  • public class PushStatusStoreUtils
    extends java.lang.Object
    Helper class for PushStatusStore related logic.
    • Field Detail

      • SERVER_INCREMENTAL_PUSH_PREFIX

        public static final java.lang.String SERVER_INCREMENTAL_PUSH_PREFIX
        See Also:
        Constant Field Values
      • ONGOING_INCREMENTAL_PUSH_STATUSES_KEY

        public static final java.lang.String ONGOING_INCREMENTAL_PUSH_STATUSES_KEY
        See Also:
        Constant Field Values
      • CONTROLLER_HEARTBEAT_INSTANCE_NAME

        public static final java.lang.String CONTROLLER_HEARTBEAT_INSTANCE_NAME
        See Also:
        Constant Field Values
    • Constructor Detail

      • PushStatusStoreUtils

        public PushStatusStoreUtils()
    • Method Detail

      • getHeartbeatKey

        public static PushStatusKey getHeartbeatKey​(java.lang.String instanceName)
      • getPushKey

        public static PushStatusKey getPushKey​(int version)
      • getPushKey

        public static PushStatusKey getPushKey​(int version,
                                               java.util.Optional<java.lang.String> incrementalPushVersion)
      • getPushKey

        public static PushStatusKey getPushKey​(int version,
                                               int partitionId,
                                               java.util.Optional<java.lang.String> incrementalPushVersion)
      • getPushKey

        public static PushStatusKey getPushKey​(int version,
                                               int partitionId,
                                               java.util.Optional<java.lang.String> incrementalPushVersion,
                                               java.util.Optional<java.lang.String> incrementalPushPrefix)
      • getServerIncrementalPushKey

        public static PushStatusKey getServerIncrementalPushKey​(int version,
                                                                int partitionId,
                                                                java.lang.String incrementalPushVersion,
                                                                java.lang.String incrementalPushPrefix)
      • getOngoingIncrementalPushStatusesKey

        public static PushStatusKey getOngoingIncrementalPushStatusesKey​(int version)
      • getPartitionIdFromServerIncrementalPushKey

        public static int getPartitionIdFromServerIncrementalPushKey​(PushStatusKey key)