List of all members.
This interface is given to a worker upon initialization. The interface allows the user code to send command objects back to the hosting container. The interface also provides access to the in-memory local cache and a particular Serializer by name.
Public Member Functions
|virtual CachePtr||getCache (int percentToFree, int maxSize)=0|
|Returns a global instance of the local cache that is process wide and shared by all dynamically loaded workers within the process. |
|virtual Serializer *||getSerializer (const std::string &className)=0|
|Returns the global cached instance of a developers Serializer for a given named class. |
|virtual CommandObjectPtr||SendCommand (void *Context, CommandObjectPtr Command)=0|
|Sends a command to the container to be processed. |
|virtual void||ThreadDetach ()=0|
|Cleans thread related objects in the JVM. |
|virtual CachePtr IWorkerPeer::getCache||(||int||percentToFree,|
Returns a global instance of the local cache that is process wide and shared by all dynamically loaded workers within the process.
|percentToFree||- target percentage to free up apon a garbage collection cycle.|
|maxSize||- maximum number of Entries this localCache can hold.|
|virtual Serializer* IWorkerPeer::getSerializer||(||const std::string &||className||)||
|virtual CommandObjectPtr IWorkerPeer::SendCommand||(||void *||Context,|
Sends a command to the container to be processed.
This is the internal mechanism for communicating back to the host process, but may be utilized by the developer to execute custom Java logic within the same process space as the host container.
|Context||- User defined information that will be returned in the result block.|
|Command||- The CommandObject to be processed.|
|virtual void IWorkerPeer::ThreadDetach||(||)||
Cleans thread related objects in the JVM.