|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jniwrapper.Parameter com.jniwrapper.Pointer.Void com.jniwrapper.win32.Handle
public class Handle
A base class for all handle types.
Field Summary | |
---|---|
static int |
INFINITE_TIMEOUT
Specifies the infinite timeout value for waitFor(Handle, long) function. |
static int |
INVALID_HANDLE_VALUE
Specifies invalid handle value. |
static int |
STATUS_ABANDONED_WAIT_0
Specifies the abandoned status value of waitFor(Handle, long) or waitFor(Handle) functions. |
static int |
STATUS_TIMEOUT
Specifies the timeout status value of waitFor(Handle, long) or waitFor(Handle) functions. |
static int |
STATUS_WAIT_0
Specifies the status value of waitFor(Handle, long) or waitFor(Handle) functions. |
Fields inherited from class com.jniwrapper.Parameter |
---|
LICENSE_TYPE, V |
Constructor Summary | |
---|---|
Handle()
Constucts a blank handle instance. |
|
Handle(long value)
Constructs a handle with the passed value. |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
static boolean |
closeHandle(Handle handle)
Closes the opened object handle. |
boolean |
equals(java.lang.Object obj)
|
static long |
waitFor(Handle handle)
Causes the current thread to wait on this handle infinitely. |
static long |
waitFor(Handle handle,
long timeout)
Causes the current thread to wait on this handle the specified number of milliseconds. This function is the wrapper for WaitForSingleObject Windows API function. |
Methods inherited from class com.jniwrapper.Pointer.Void |
---|
asFunction, asFunction, asTypedPointer, castTo, castTo, getDebugInfo, getLength, getValue, hashCode, isNull, read, setValue, toString, write |
Methods inherited from class com.jniwrapper.Parameter |
---|
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int INFINITE_TIMEOUT
waitFor(Handle, long)
function.
public static final int STATUS_WAIT_0
waitFor(Handle, long)
or waitFor(Handle)
functions.
public static final int STATUS_ABANDONED_WAIT_0
waitFor(Handle, long)
or waitFor(Handle)
functions.
public static final int STATUS_TIMEOUT
waitFor(Handle, long)
or waitFor(Handle)
functions.
public static final int INVALID_HANDLE_VALUE
Constructor Detail |
---|
public Handle()
public Handle(long value)
value
- handle value.Method Detail |
---|
public java.lang.Object clone()
clone
in class com.jniwrapper.Pointer.Void
public boolean equals(java.lang.Object obj)
equals
in class com.jniwrapper.Pointer.Void
public static long waitFor(Handle handle, long timeout)
WaitForSingleObject
Windows API function.
handle
- handle to wait fortimeout
- Time-out interval, in milliseconds
public static long waitFor(Handle handle)
handle
- handle to wait for
public static boolean closeHandle(Handle handle)
CloseHandle
Windows API function.
handle
- handle to an opened object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |