Thread-local Java direct buffer. More...
#include <JavaThreadLocalBuffer.h++>

Public Member Functions | |
| JavaThreadLocalBuffer (JavaVirtualMachine *jvm, size_t size) | |
| Construct a new ThreadLocalJavaBuffer with the given size. | |
| ~JavaThreadLocalBuffer () throw () | |
| Destructor. | |
| JavaBuffer & | operator* () throw (NullPointerException) |
| Pointer-dereference operator. | |
| JavaBuffer * | operator-> () throw (NullPointerException) |
| Pointer operator. | |
| void | setValue (JavaBuffer *value) throw () |
| Set the value of the thread-local object for the calling thread. | |
| JavaBuffer * | getValue () throw () |
| Get the value of the thread-local object for the calling thread. | |
Static Public Member Functions | |
| static int | getSlotCount () |
| Get the maximum number of thread-local storage slots available on this platform. | |
Protected Member Functions | |
| JavaBuffer * | initialValue () |
| Provide the intial value of the thread-local object for the calling thread. | |
Thread-local Java direct buffer.
The buffer exists as a separate instance for each calling thread.
| JavaThreadLocalBuffer | ( | JavaVirtualMachine * | jvm, | |
| size_t | size | |||
| ) |
Construct a new ThreadLocalJavaBuffer with the given size.
| jvm | The Java Virtual Machine in which to create the buffer. | |
| size | The size of the buffer, in bytes. |
| ~JavaThreadLocalBuffer | ( | ) | throw () |
Destructor.
| static int getSlotCount | ( | ) | [static, inherited] |
Get the maximum number of thread-local storage slots available on this platform.
A return value of -1 indicates that there is no limit.
| JavaBuffer * getValue | ( | ) | throw () [inherited] |
Get the value of the thread-local object for the calling thread.
| JavaBuffer * initialValue | ( | ) | [protected, virtual] |
Provide the intial value of the thread-local object for the calling thread.
The default implementation returns NULL.
Reimplemented from ThreadLocal< JavaBuffer >.
| JavaBuffer & operator* | ( | ) | throw (NullPointerException) [inherited] |
Pointer-dereference operator.
| NullPointerException | If the value of the object was never initialized for the calling thread. |
| JavaBuffer * operator-> | ( | ) | throw (NullPointerException) [inherited] |
Pointer operator.
| NullPointerException | If the value of the object was never initialized for the calling thread. |
| void setValue | ( | JavaBuffer * | value | ) | throw () [inherited] |
Set the value of the thread-local object for the calling thread.
| value | The new value. |
1.6.3