public class DefaultGigaSpaceTypeManager extends Object implements GigaSpaceTypeManager
GigaSpaceTypeManager
.
This class is intended for internal usage only.Constructor and Description |
---|
DefaultGigaSpaceTypeManager(com.gigaspaces.internal.client.spaceproxy.ISpaceProxy space,
ExceptionTranslator exTranslator) |
Modifier and Type | Method and Description |
---|---|
AsyncFuture<AddTypeIndexesResult> |
asyncAddIndex(String typeName,
SpaceIndex index)
Adds the specified index to the specified type.
|
AsyncFuture<AddTypeIndexesResult> |
asyncAddIndex(String typeName,
SpaceIndex index,
AsyncFutureListener<AddTypeIndexesResult> listener)
Adds the specified index to the specified type.
|
AsyncFuture<AddTypeIndexesResult> |
asyncAddIndexes(String typeName,
SpaceIndex[] indexes,
AsyncFutureListener<AddTypeIndexesResult> listener)
Adds the specified indexes to the specified type.
|
SpaceTypeDescriptor |
getTypeDescriptor(Class<?> type)
Gets the space type descriptor of the specified type.
|
SpaceTypeDescriptor |
getTypeDescriptor(String typeName)
Gets the space type descriptor of the specified type.
|
void |
registerTypeDescriptor(Class<?> type)
Creates a type descriptor for the specified type and registers it in the space.
|
void |
registerTypeDescriptor(SpaceTypeDescriptor typeDescriptor)
Registers the specified space type descriptor in the space.
|
public DefaultGigaSpaceTypeManager(com.gigaspaces.internal.client.spaceproxy.ISpaceProxy space, ExceptionTranslator exTranslator)
public SpaceTypeDescriptor getTypeDescriptor(String typeName)
GigaSpaceTypeManager
getTypeDescriptor
in interface GigaSpaceTypeManager
typeName
- Name of type.public SpaceTypeDescriptor getTypeDescriptor(Class<?> type)
GigaSpaceTypeManager
getTypeDescriptor
in interface GigaSpaceTypeManager
type
- Java class.public void registerTypeDescriptor(SpaceTypeDescriptor typeDescriptor)
GigaSpaceTypeManager
registerTypeDescriptor
in interface GigaSpaceTypeManager
public void registerTypeDescriptor(Class<?> type)
GigaSpaceTypeManager
registerTypeDescriptor
in interface GigaSpaceTypeManager
public AsyncFuture<AddTypeIndexesResult> asyncAddIndex(String typeName, SpaceIndex index)
GigaSpaceTypeManager
asyncAddIndex
in interface GigaSpaceTypeManager
typeName
- Name of type to enhance.index
- Index to add.get()
method will return the add index result upon completion.public AsyncFuture<AddTypeIndexesResult> asyncAddIndex(String typeName, SpaceIndex index, AsyncFutureListener<AddTypeIndexesResult> listener)
GigaSpaceTypeManager
asyncAddIndex
in interface GigaSpaceTypeManager
typeName
- Name of type to enhance.index
- Index to add.listener
- A listener to be notified when a result arrivesget()
method will return the add index result upon completion.public AsyncFuture<AddTypeIndexesResult> asyncAddIndexes(String typeName, SpaceIndex[] indexes, AsyncFutureListener<AddTypeIndexesResult> listener)
GigaSpaceTypeManager
asyncAddIndexes
in interface GigaSpaceTypeManager
typeName
- Name of type to enhance.indexes
- Indexes to add.listener
- A listener to be notified when a result arrives.get()
method will return the add index result upon completion.Copyright © GigaSpaces.