Package org.robovm.apple.dispatch
Class DispatchIO
java.lang.Object
org.robovm.rt.bro.NativeObject
org.robovm.apple.dispatch.DispatchObject
org.robovm.apple.dispatch.DispatchIO
public class DispatchIO extends DispatchObject
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDispatchIO.DispatchIOPtrNested classes/interfaces inherited from class org.robovm.apple.dispatch.DispatchObject
DispatchObject.DispatchObjectPtrNested classes/interfaces inherited from class org.robovm.rt.bro.NativeObject
NativeObject.Marshaler -
Field Summary
Fields Modifier and Type Field Description static intRANDOMstatic intSTOPstatic intSTREAMstatic intSTRICT_INTERVAL -
Constructor Summary
Constructors Modifier Constructor Description protectedDispatchIO() -
Method Summary
Modifier and Type Method Description voidbarrier(Runnable barrier)voidclose(long flags)static DispatchIOcreate(long type, int fd, DispatchQueue queue, VoidIntBlock cleanup_handler)static DispatchIOcreate(long type, String path, int oflag, short mode, DispatchQueue queue, VoidIntBlock cleanup_handler)static DispatchIOcreate(long type, DispatchIO io, DispatchQueue queue, VoidIntBlock cleanup_handler)intgetDescriptor()voidread(long offset, long length, DispatchQueue queue, VoidBlock3<Boolean,DispatchData,Integer> io_handler)voidsetHighWater(long high_water)voidsetInterval(long interval, long flags)voidsetLowWater(long low_water)voidwrite(long offset, DispatchData data, DispatchQueue queue, VoidBlock3<Boolean,DispatchData,Integer> io_handler)Methods inherited from class org.robovm.apple.dispatch.DispatchObject
release, resume, retain, setTargetQueue, suspend
-
Field Details
-
STREAM
public static final int STREAM- See Also:
- Constant Field Values
-
RANDOM
public static final int RANDOM- See Also:
- Constant Field Values
-
STOP
public static final int STOP- See Also:
- Constant Field Values
-
STRICT_INTERVAL
public static final int STRICT_INTERVAL- See Also:
- Constant Field Values
-
-
Constructor Details
-
DispatchIO
protected DispatchIO()
-
-
Method Details
-
create
public static DispatchIO create(long type, int fd, DispatchQueue queue, VoidIntBlock cleanup_handler) -
create
public static DispatchIO create(long type, String path, int oflag, short mode, DispatchQueue queue, VoidIntBlock cleanup_handler) -
create
public static DispatchIO create(long type, DispatchIO io, DispatchQueue queue, VoidIntBlock cleanup_handler) -
read
public void read(long offset, long length, DispatchQueue queue, VoidBlock3<Boolean,DispatchData,Integer> io_handler) -
write
public void write(long offset, DispatchData data, DispatchQueue queue, VoidBlock3<Boolean,DispatchData,Integer> io_handler) -
close
public void close(long flags) -
barrier
-
getDescriptor
public int getDescriptor() -
setHighWater
public void setHighWater(long high_water) -
setLowWater
public void setLowWater(long low_water) -
setInterval
public void setInterval(long interval, long flags)
-