public interface CachePluginProvider<C extends CachePluginConfiguration>
CachePluginConfiguration
.Modifier and Type | Method and Description |
---|---|
<T> T |
createComponent(Class<T> cls) |
void |
onIgniteStart()
Callback that notifies that Ignite has successfully started,
including all internal components.
|
void |
onIgniteStop(boolean cancel)
Callback to notify that Ignite is about to stop.
|
void |
start()
Starts grid component.
|
void |
stop(boolean cancel)
Stops grid component.
|
<T,K,V> T |
unwrapCacheEntry(javax.cache.Cache.Entry<K,V> entry,
Class<T> cls)
Unwrap entry to specified type.
|
void |
validate()
Validates cache plugin configuration in process of cache creation.
|
void |
validateRemote(CacheConfiguration locCfg,
CacheConfiguration rmtCfg,
ClusterNode rmtNode)
Checks that remote caches has configuration compatible with the local.
|
void start() throws IgniteCheckedException
IgniteCheckedException
- Throws in case of any errors.void stop(boolean cancel)
cancel
- If true
, then all ongoing tasks or jobs for relevant
components need to be cancelled.void onIgniteStart() throws IgniteCheckedException
IgniteCheckedException
- Thrown in case of any errors.void onIgniteStop(boolean cancel)
cancel
- Flag indicating whether jobs should be canceled.@Nullable <T> T createComponent(Class<T> cls)
T
- Type of the component to create.cls
- Ignite component class.null
if component is not supported.@Nullable <T,K,V> T unwrapCacheEntry(javax.cache.Cache.Entry<K,V> entry, Class<T> cls)
javax.cache.Cache.Entry.unwrap(Class)
.T
- Type of the object cache entry be unwrapped to.V
- Cache entry value type.K
- Cache entry key type.entry
- Mutable entry to unwrap.cls
- Type of the expected component.null
if it's not available.void validate() throws IgniteCheckedException
IgniteCheckedException
- If validation failed.void validateRemote(CacheConfiguration locCfg, CacheConfiguration rmtCfg, ClusterNode rmtNode) throws IgniteCheckedException
locCfg
- Local configuration.rmtCfg
- Remote configuration.rmtNode
- Remote node.IgniteCheckedException
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.16.0 Release Date : December 15 2023