org.endurox.TypedBuffer Class Reference
List of all members.
Detailed Description
This is data type buffer for XATMI IPC. Note that only one instance of the buffer may hold the destructor for C counter parts. Some buffers (received by service call) may not be even associated by destructor, as those are dellocated by XATMI sub-system.
Constructor & Destructor Documentation
org.endurox.TypedBuffer.TypedBuffer |
( |
AtmiCtx |
ctx, |
|
|
boolean |
doFinalize, |
|
|
long |
cPtr, |
|
|
long |
len | |
|
) |
| | |
Initialize ATMI Buffer Object
- Parameters:
-
| ctx[in] | ATMI Context allocated this method |
| doFinalize[in] | Should |
| cPtr[in] | C pointer to allocated block |
| len[in] | Conditional buffer length |
Member Function Documentation
org.endurox.TypedBuffer.[static initializer] |
( |
|
) |
[static, package] |
void org.endurox.TypedBuffer.cleanup |
( |
|
) |
|
Clean up the object (basically this is destructor) as we cannot relay on finalize() auto call of from the Garbage Collector. Thus we object goes out of the scope,
void org.endurox.TypedBuffer.finalize |
( |
|
) |
throws Throwable [protected] |
Finish of this ATMI buffer
void org.endurox.TypedBuffer.setAtmiCtx |
( |
AtmiCtx |
ctx |
) |
|
Change the owner ATMi Context, when buffer is passed from one context / thread to another
- Exceptions:
-
| NullPointerException | ctx is null |
- Parameters:
-
void org.endurox.TypedBuffer.setDoFinalize |
( |
boolean |
b |
) |
|
native void org.endurox.TypedBuffer.tprealloc |
( |
long |
size |
) |
|
Reallocate ATMI buffer
- Parameters:
-
- Exceptions:
-
Get the buffer type description from middleware point of view
- Returns:
- Type descriptor
Member Data Documentation
Pointer to C ATMI Context object
Shall we destruct the linked C side ATMI object. No need to collect the object for auto buffers.