com.rhi.architecture.resource.shmem
Interface SharedMemory

All Superinterfaces:
Resource
All Known Implementing Classes:
PersistentSharedMemory, TransientSharedMemory

public interface SharedMemory
extends Resource

Interface for SharedMemory classes

Author:
geolun01

Method Summary
 java.lang.Object getSharedData()
          Gets the shared data as an object.
 void setSharedData(java.lang.Object data)
          Sets the shared data object.
 
Methods inherited from interface com.rhi.architecture.resource.Resource
close, init
 

Method Detail

getSharedData

public java.lang.Object getSharedData()
Gets the shared data as an object.

Returns:
The shared data object

setSharedData

public void setSharedData(java.lang.Object data)
                   throws java.io.IOException
Sets the shared data object. Should be synchronized to make it thread-safe

Parameters:
data - Object to be stored
Throws:
java.io.IOException - Thrown if an error occurs while storing the object


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