@SPI(status=Stable,
useRestriction=Internal)
public interface ClusterSafeObjectProvider
An SPI allowing to specify which cluster safe object provider to use.
| Modifier and Type | Method and Description |
|---|---|
void |
afterAccess()
Will be called after each and every operation on an object retrieved from the cluster safe object provider.
|
void |
beforeAccess()
Will be called before each and every operation on an object retrieved from the cluster safe object provider.
|
<K,V> Map<K,V> |
clusterSafeMap(String mapId)
Returns a cluster safe map for the given map ID.
|
void |
exception(Exception e)
Will be called in case an exception occured during access of an object retrieved from the cluster safe object provider.
|
void |
reset()
Resets the
ClusterSafeObjectProvider to the uninitialized state such that a subsequent call other than
reset() causes a reinitialization of this ClusterSafeObjectProvider. |
<K,V> Map<K,V> clusterSafeMap(String mapId)
Returns a cluster safe map for the given map ID. If it does not yet exist, it will be created first. Same map ID means that the same map is returned.
K - the type of the map keysV - the type of the map valuesmapId - the ID of the map to be returned; must not be nullvoid beforeAccess()
Will be called before each and every operation on an object retrieved from the cluster safe object provider.
void exception(Exception e)
Will be called in case an exception occured during access of an object retrieved from the cluster safe object provider.
e - the exception raisedvoid afterAccess()
Will be called after each and every operation on an object retrieved from the cluster safe object provider.
void reset()
ClusterSafeObjectProvider to the uninitialized state such that a subsequent call other than
reset() causes a reinitialization of this ClusterSafeObjectProvider.Copyright © 2016 Eclipse Stardust. All Rights Reserved.