Class DispatchSource


public class DispatchSource
extends DispatchObject
  • Field Details

  • Constructor Details

    • DispatchSource

      protected DispatchSource()
  • Method Details

    • create

      public static DispatchSource create​(DispatchSourceType type, long handle, long mask, DispatchQueue queue)
    • setEventHandler

      public void setEventHandler​(Runnable handler)
    • setCancelHandler

      public void setCancelHandler​(Runnable handler)
    • cancel

      public void cancel()
    • testCancel

      public long testCancel()
    • getSourceHandle

      public long getSourceHandle()
    • getMask

      public long getMask()
    • getData

      public long getData()
    • mergeData

      public void mergeData​(long value)
    • setTimer

      public void setTimer​(long start, long interval, long leeway)
    • setRegistrationHandler

      public void setRegistrationHandler​(Runnable handler)