public class MemoryResource extends AbstractNonBlockingResource
Modifier and Type | Field and Description |
---|---|
static String |
DESCRIPTION |
static String |
NAME |
lock, multiResourcelock
Constructor and Description |
---|
MemoryResource(MemoryResourceParameters parameters)
Creates a new
MemoryResource . |
Modifier and Type | Method and Description |
---|---|
Object |
get()
Returns the real resource represented by this object.
|
String |
getName()
Returns the name of the
Resource . |
boolean |
isThis(ResourceParameters parameters) |
execute
addConsumer, 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, updateLastTimeUsed
public static final String NAME
public static final String DESCRIPTION
public MemoryResource(MemoryResourceParameters parameters) throws InitializeException
MemoryResource
.parameters
- to create the resourceInitializeException
- if there is an error creating the resourcepublic Object get() throws AccessResourceException
AbstractResource
get
in interface Resource
get
in class AbstractResource
AccessResourceException
- if there is an error while accessing the resourcepublic String getName() throws AccessResourceException
AbstractResource
Resource
.getName
in interface Resource
getName
in class AbstractResource
AccessResourceException
- if there is an error while accessing the resourcepublic boolean isThis(ResourceParameters parameters) throws ResourceException
ResourceException