com.rhi.architecture.resource.shmem
Class TransientSharedMemory

java.lang.Object
  extended bycom.rhi.architecture.resource.shmem.TransientSharedMemory
All Implemented Interfaces:
Resource, SharedMemory

public class TransientSharedMemory
extends java.lang.Object
implements SharedMemory

A shared object which can be created as a resource. This object can then be retieved from the ResourceContext and used to share data between threads.

Author:
geolun01

Field Summary
protected  java.lang.Object sharedData
           
 
Constructor Summary
TransientSharedMemory()
           
 
Method Summary
 void close()
          Set the shared data to null for cleanup.
 java.lang.Object getSharedData()
          Returns the sharedData.
 void init(java.util.Properties p)
          No initalization needed
 void setSharedData(java.lang.Object sharedData)
          Sets the sharedData.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sharedData

protected java.lang.Object sharedData
Constructor Detail

TransientSharedMemory

public TransientSharedMemory()
Method Detail

init

public void init(java.util.Properties p)
          throws InitializationException
No initalization needed

Specified by:
init in interface Resource
Parameters:
p -
Throws:
InitializationException
See Also:
Resource.init(Properties)

close

public void close()
Set the shared data to null for cleanup.

Specified by:
close in interface Resource
See Also:
Resource.close()

getSharedData

public java.lang.Object getSharedData()
Returns the sharedData.

Specified by:
getSharedData in interface SharedMemory
Returns:
Object

setSharedData

public void setSharedData(java.lang.Object sharedData)
Sets the sharedData.

Specified by:
setSharedData in interface SharedMemory
Parameters:
sharedData - The sharedData to set


Copyright © 2002-2004 Robert Half International. All Rights Reserved.