public abstract class Handle extends Object implements Closeable
| Modifier and Type | Field and Description |
|---|---|
protected LoopHandle |
loop |
protected long |
pointer |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
int |
hashCode() |
boolean |
isClosing()
Retrieves whether this handle has been closed.
|
void |
ref()
Reference this handle.
|
String |
toString() |
void |
unref()
Un-reference this handle.
|
protected final long pointer
protected final LoopHandle loop
public void ref()
References are idempotent, that is, if a handle is already referenced calling this function again will have no effect.
public void unref()
References are idempotent, that is, if a handle is not referenced calling this function again will have no effect.
public boolean isClosing()
This function should only be used between the initialization of the handle and the arrival of the close callback.
false if the handle is closing or closed, true
otherwise.Copyright © 2021 WebFolder. All rights reserved.