final class CTHANDLE
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.Semaphore |
mySema |
private int |
owner |
private long |
ptr |
Constructor and Description |
---|
CTHANDLE(long pointer,
CTHANDLE Handle)
Copy constructor for the CTHANDLE class.
|
CTHANDLE(long pointer,
java.util.concurrent.Semaphore sema,
int own)
Constructor for the CTHANDLE class.
|
Modifier and Type | Method and Description |
---|---|
int |
getOwner()
Retrieves the handle owner
|
long |
nativeType()
Retrieves the CTDB handle pointer
|
void |
Post()
Finalizes the handle synchronization by releasing the semaphore.
|
boolean |
Pre(boolean isvalid)
Starts the handle synchronization by acquiring the semaphore.
|
private java.util.concurrent.Semaphore mySema
private long ptr
private int owner
public CTHANDLE(long pointer, java.util.concurrent.Semaphore sema, int own)
pointer
- CTDB handle pointersema
- Semaphore to be used for the new object synchronizationown
- Object owner codeCTHANDLE(long, CTHANDLE)
public CTHANDLE(long pointer, CTHANDLE Handle)
pointer
- CTDB handle pointerHandle
- JTDB handle to be copiedCTHANDLE(long, Semaphore, int)
public boolean Pre(boolean isvalid)
Post()
public void Post()
Pre(boolean)
public long nativeType()
getOwner()
public int getOwner()
nativeType()