public class MemoryResource extends AbstractNonBlockingResource
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DESCRIPTION |
static java.lang.String |
NAME |
lock, multiResourcelock| Constructor and Description |
|---|
MemoryResource(MemoryResourceParameters parameters)
Creates a new
MemoryResource. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
get()
Returns the real resource represented by this object.
|
java.lang.String |
getName()
Returns the name of the
Resource. |
boolean |
isThis(ResourceParameters parameters) |
executeaddConsumer, addObserver, addObservers, closeRequest, deleteObserver, deleteObservers, executeBegins, executeEnds, getConsumerAt, getConsumersCount, getData, getLastTimeOpen, getLastTimeUsed, getParameters, inUse, isOpen, notifyChanges, notifyClose, notifyDispose, notifyObserver, notifyOpen, openCount, performExecution, prepare, prepare, removeConsumer, setData, updateLastTimeOpen, updateLastTimeUsedpublic static final java.lang.String NAME
public static final java.lang.String DESCRIPTION
public MemoryResource(MemoryResourceParameters parameters) throws InitializeException
MemoryResource.parameters - to create the resourceInitializeException - if there is an error creating the resourcepublic java.lang.Object get()
throws AccessResourceException
AbstractResourceget in interface Resourceget in class AbstractResourceAccessResourceException - if there is an error while accessing the resourcepublic java.lang.String getName()
throws AccessResourceException
AbstractResourceResource.getName in interface ResourcegetName in class AbstractResourceAccessResourceException - if there is an error while accessing the resourcepublic boolean isThis(ResourceParameters parameters) throws ResourceException
ResourceException