org.endurox.TypedBuffer Class Reference

List of all members.

Public Member Functions

native void tprealloc (long size)
 TypedBuffer (AtmiCtx ctx, boolean doFinalize, long cPtr, long len)
void setAtmiCtx (AtmiCtx ctx)
void cleanup ()
void setDoFinalize (boolean b)
native TpTypesResult tptypes ()

Protected Member Functions

void finalize () throws Throwable

Static Package Functions

 [static initializer]

Package Attributes

AtmiCtx ctx
boolean doFinalize
long cPtr
long len

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]

Reimplemented in org.endurox.TypedUbf.

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:
ctx ATMI Context
void org.endurox.TypedBuffer.setDoFinalize ( boolean  b  ) 

Set the finalize flag

native void org.endurox.TypedBuffer.tprealloc ( long  size  ) 

Reallocate ATMI buffer

Parameters:
size[in] New buffer size
Exceptions:
AtmiTPEOSException Operating system exception occurred
native TpTypesResult org.endurox.TypedBuffer.tptypes (  ) 

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.

 All Classes Namespaces Files Functions Variables

Generated on 27 Dec 2021 for endurox-java by  doxygen 1.6.1