@Namespace(value="arrow::util") @Properties(inherit=arrow.class) public class AsyncToggle extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
AsyncToggle()
Default native constructor.
|
AsyncToggle(long size)
Native array allocator.
|
AsyncToggle(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Close()
\brief Close the toggle
After this call any call to WhenOpen will be delayed until the next open
|
AsyncToggle |
getPointer(long i) |
boolean |
IsOpen()
\brief Return true if the toggle is currently open
|
void |
Open()
\brief Open the toggle
Note: This call may complete a future, triggering any callbacks, and generally
should not be done while holding any locks.
|
AsyncToggle |
position(long position) |
Future |
WhenOpen()
Get a future that will complete when the toggle next becomes open
If the toggle is open this returns immediately
If the toggle is closed this future will be unfinished until the next call to Open
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic AsyncToggle()
public AsyncToggle(long size)
Pointer.position(long).public AsyncToggle(Pointer p)
Pointer(Pointer).public AsyncToggle position(long position)
public AsyncToggle getPointer(long i)
getPointer in class Pointer@ByVal public Future WhenOpen()
public void Close()
public void Open()
Copyright © 2022. All rights reserved.