java.lang.Object
com.oracle.libuv.Handle
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
- Direct Known Subclasses:
AsyncHandle,CheckHandle,IdleHandle,PipeHandle,PrepareHandle,ProcessHandle,TCPHandle,TimerHandle,UDPHandle
public abstract class Handle
extends java.lang.Object
implements java.io.Closeable
The base class for handle.
See Base handle
-
Field Summary
Fields Modifier and Type Field Description protected LoopHandleloopprotected longpointer -
Method Summary
-
Field Details
-
Method Details
-
ref
public void ref()Reference this handle.References are idempotent, that is, if a handle is already referenced calling this function again will have no effect.
-
unref
public void unref()Un-reference this handle.References are idempotent, that is, if a handle is not referenced calling this function again will have no effect.
-
isClosing
public boolean isClosing()Retrieves whether this handle has been closed.This function should only be used between the initialization of the handle and the arrival of the close callback.
- Returns:
falseif the handle is closing or closed,trueotherwise.
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-