7.25 Space Object
| Used on |
|
| Description | Logically a space is a shared repository for objects. Objects can be written to, and taken from, a space.
In practice a space will be an area of shared memory.
A space is the persistent data part of the Processing Unit, which is why a 'space' is contained within a 'processing-unit' and is not
a meta-class peer of a processing-unit.
A PU can have 0, 1 or many spaces.
The URL generated for this space (for an external reference) will be
<protocol>://<host>:<port>/<container-name>/<name>?<args>
|
Contained Lists |
| 1 |
| Name | lifecycleEvent |
| Type | lifecycleEvent
|
| Description | The list of lifecycle events triggered in this space. See also selection-events.
|
| Indexed property | name |
|
|
Inherited properties |
| template |
(base property)
| |
| text |
(base property)
| |
| jwpattern |
(base property)
| |
|
7.25.1 Property 'description'
|
7.25.2 Property 'fifo'
|
| Description | This is the FIFO (first-in, first-out) property - if set true, entries will be taken from the space in the same order they were inserted.
It is present on JavaBeans and spaces, indicating that operations on these objects should use FIFO.
Although you can set this on a space, you should be aware that it may needlessly reduce performance on operations where it is unnecessary.
If this value is not set, the value is searched by delegation to the model object's parents.
This will continue all the way up to the application object.
The application object's fifo setting therefore gives a default for the all the objects defined in the application.
The default for 'fifo' in the application object is normally false,
so JavaBeans in spaces will not be guaranteed to be read/taken in the same order they were written.
This follows the GigaSpaces defaults where 'fifo' is false.
You can override this default by setting fifo=true in resources/giga-spaces/control/application/component.properties.
See customization 10.
|
| Type | boolean |
7.25.3 Property 'name'
|
| Description | The name of this space.
|
| Type | String |
| Required | true |
|