Class CKOperationGroup

  • All Implemented Interfaces:
    NSCoding, NSSecureCoding, NSObject

    public class CKOperationGroup
    extends NSObject
    implements NSSecureCoding
    CKOperationGroup A mechanism for your app to group several operations at the granularity of a user action. For example, when building a Calendar application, these things might warrant being their own operation groups: - an initial fetch of data from the server, consisting of many queries, fetchChanges, and fetch operations - doing an incremental fetch of data in response to a push notification - saving several records due to a user saving a calendar event You associate @c CKOperationGroup s with@c CKOperation s by setting the @c CKOperation.group property. Create a new @c CKOperationGroup instance for each distinct user action.
    • Constructor Detail

      • CKOperationGroup

        protected CKOperationGroup​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(java.lang.Object aTarget,
                                                                                 org.moe.natj.objc.SEL aSelector,
                                                                                 java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        public static org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • defaultConfiguration

        public CKOperationConfiguration defaultConfiguration()
        This is the default configuration applied to operations in this operation group. If an operation associated with this operation group has its own configuration, then any explicitly-set properties in that operation's configuration will override these default configuration values. See the example in CKOperation.h
      • description_static

        public static java.lang.String description_static()
      • expectedReceiveSize

        public long expectedReceiveSize()
        Estimated size of traffic being downloaded from the CloudKit Server Inform the system how much data you plan on transferring. Obviously, these won't be exact. Be as accurate as possible, but even an order-of-magnitude estimate is better than no value. The system will consult these values when scheduling discretionary network requests (see the description of @c CKOperationConfiguration.qualityOfService). Overestimating your workload means that an operation group issuing discretionary network requests may be delayed until network conditions are good. Underestimating your workload may cause the system to oversaturate a constrained connection, leading to network failures. You may update after the @c CKOperationGroup is created. If it is increased, then subsequent @c CKOperation s associated with this operation group may be delayed until network conditions are good. Defaults to @c CKOperationGroupTransferSizeUnknown
      • expectedSendSize

        public long expectedSendSize()
        Estimated size of traffic being uploaded to the CloudKit Server Inform the system how much data you plan on transferring. Obviously, these won't be exact. Be as accurate as possible, but even an order-of-magnitude estimate is better than no value. The system will consult these values when scheduling discretionary network requests (see the description of @c CKOperationConfiguration.qualityOfService). Overestimating your workload means that an operation group issuing discretionary network requests may be delayed until network conditions are good. Underestimating your workload may cause the system to oversaturate a constrained connection, leading to network failures. You may update after the @c CKOperationGroup is created. If it is increased, then subsequent @c CKOperation s associated with this operation group may be delayed until network conditions are good. Defaults to @c CKOperationGroupTransferSizeUnknown
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • name

        public java.lang.String name()
        Describes the user action attributed to the operation group. [@c] name should describe the type of work being done. Some examples: "Initial Fetch" "Incremental Fetch" "Saving User-Entered Record" This string will be sent to Apple servers to provide aggregate reporting for @c CKOperationGroup s and therefore must not include personally identifying data.
      • new_objc

        public static java.lang.Object new_objc()
      • operationGroupID

        public java.lang.String operationGroupID()
        This is an identifier unique to this @c CKOperationGroup This value is chosen by the system, and will be unique to this instance of a @c CKOperationGroup. This identifier will be sent to Apple's servers, and can be used to identify any server-side logging associated with this operation group.
      • quantity

        public long quantity()
        Describes an application-specific "number of elements" associated with the operation group. [@c] quantity is intended to show the app-specific count of items contained within the operation group. It is your job to assign meaning to this value. For example, if an app created an operation group to save 3 calendar events the user had created, the app might want to set this to "3". This value is not shown to your users, it's meant to aid your development and debugging. This value will be reported in the CloudKit Dashboard's log entries for all operations associated with this operation group.
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setDefaultConfiguration

        public void setDefaultConfiguration​(CKOperationConfiguration value)
        This is the default configuration applied to operations in this operation group. If an operation associated with this operation group has its own configuration, then any explicitly-set properties in that operation's configuration will override these default configuration values. See the example in CKOperation.h
      • setExpectedReceiveSize

        public void setExpectedReceiveSize​(long value)
        Estimated size of traffic being downloaded from the CloudKit Server Inform the system how much data you plan on transferring. Obviously, these won't be exact. Be as accurate as possible, but even an order-of-magnitude estimate is better than no value. The system will consult these values when scheduling discretionary network requests (see the description of @c CKOperationConfiguration.qualityOfService). Overestimating your workload means that an operation group issuing discretionary network requests may be delayed until network conditions are good. Underestimating your workload may cause the system to oversaturate a constrained connection, leading to network failures. You may update after the @c CKOperationGroup is created. If it is increased, then subsequent @c CKOperation s associated with this operation group may be delayed until network conditions are good. Defaults to @c CKOperationGroupTransferSizeUnknown
      • setExpectedSendSize

        public void setExpectedSendSize​(long value)
        Estimated size of traffic being uploaded to the CloudKit Server Inform the system how much data you plan on transferring. Obviously, these won't be exact. Be as accurate as possible, but even an order-of-magnitude estimate is better than no value. The system will consult these values when scheduling discretionary network requests (see the description of @c CKOperationConfiguration.qualityOfService). Overestimating your workload means that an operation group issuing discretionary network requests may be delayed until network conditions are good. Underestimating your workload may cause the system to oversaturate a constrained connection, leading to network failures. You may update after the @c CKOperationGroup is created. If it is increased, then subsequent @c CKOperation s associated with this operation group may be delayed until network conditions are good. Defaults to @c CKOperationGroupTransferSizeUnknown
      • setName

        public void setName​(java.lang.String value)
        Describes the user action attributed to the operation group. [@c] name should describe the type of work being done. Some examples: "Initial Fetch" "Incremental Fetch" "Saving User-Entered Record" This string will be sent to Apple servers to provide aggregate reporting for @c CKOperationGroup s and therefore must not include personally identifying data.
      • setQuantity

        public void setQuantity​(long value)
        Describes an application-specific "number of elements" associated with the operation group. [@c] quantity is intended to show the app-specific count of items contained within the operation group. It is your job to assign meaning to this value. For example, if an app created an operation group to save 3 calendar events the user had created, the app might want to set this to "3". This value is not shown to your users, it's meant to aid your development and debugging. This value will be reported in the CloudKit Dashboard's log entries for all operations associated with this operation group.
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • supportsSecureCoding

        public static boolean supportsSecureCoding()
      • _supportsSecureCoding

        public boolean _supportsSecureCoding()
        Description copied from interface: NSSecureCoding
        This property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.
        Specified by:
        _supportsSecureCoding in interface NSSecureCoding
      • version_static

        public static long version_static()