Class NSOperationQueue

    • Constructor Detail

      • NSOperationQueue

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

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

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

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

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

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

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • currentQueue

        @Nullable
        public static @Nullable NSOperationQueue currentQueue()
        API-Since: 4.0
      • debugDescription_static

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

        public static java.lang.String description_static()
      • 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

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • mainQueue

        @NotNull
        public static @NotNull NSOperationQueue mainQueue()
        API-Since: 4.0
      • resolveClassMethod

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

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

        public static void setVersion_static​(long aVersion)
      • superclass_static

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

        public static long version_static()
      • addOperation

        public void addOperation​(@NotNull
                                 @NotNull NSOperation op)
      • addOperationsWaitUntilFinished

        public void addOperationsWaitUntilFinished​(@NotNull
                                                   @NotNull NSArray<? extends NSOperation> ops,
                                                   boolean wait_)
        API-Since: 4.0
      • cancelAllOperations

        public void cancelAllOperations()
      • isSuspended

        public boolean isSuspended()
      • setSuspended

        public void setSuspended​(boolean value)
      • maxConcurrentOperationCount

        public long maxConcurrentOperationCount()
      • name

        @Nullable
        public @Nullable java.lang.String name()
        API-Since: 4.0
      • operationCount

        @Deprecated
        public long operationCount()
        Deprecated.
        API-Since: 4.0 Deprecated-Since: 100000.0
      • operations

        @NotNull
        @Deprecated
        public @NotNull NSArray<? extends NSOperation> operations()
        Deprecated.
        These two functions are inherently a race condition and should be avoided if possible API-Since: 2.0 Deprecated-Since: 100000.0 Deprecated-Message: access to operations is inherently a race condition, it should not be used. For barrier style behaviors please use addBarrierBlock: instead
      • qualityOfService

        public long qualityOfService()
        API-Since: 8.0
      • setMaxConcurrentOperationCount

        public void setMaxConcurrentOperationCount​(long value)
      • setName

        public void setName​(@Nullable
                            @Nullable java.lang.String value)
        API-Since: 4.0
      • setQualityOfService

        public void setQualityOfService​(long value)
        API-Since: 8.0
      • setUnderlyingQueue

        public void setUnderlyingQueue​(@Nullable
                                       @Nullable dispatch_queue_t value)
        actually retain API-Since: 8.0
      • underlyingQueue

        @Nullable
        public @Nullable dispatch_queue_t underlyingQueue()
        actually retain API-Since: 8.0
      • waitUntilAllOperationsAreFinished

        public void waitUntilAllOperationsAreFinished()
      • addBarrierBlock

        public void addBarrierBlock​(@NotNull
                                    @NotNull NSOperationQueue.Block_addBarrierBlock barrier)
        addBarrierBlock: The `addBarrierBlock:` method executes the block when the NSOperationQueue has finished all enqueued operations and prevents any subsequent operations to be executed until the barrier has been completed. This acts similarly to the `dispatch_barrier_async` function. API-Since: 13.0
        Parameters:
        barrier - A block to execute
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.