Class BinaryAdapter
java.lang.Object
com.gigaspaces.client.storage_adapters.PropertyStorageAdapter
com.gigaspaces.client.storage_adapters.BinaryAdapter
Adapter for serializing properties using standard serialization and storing them in space in binary form.
- Since:
- 15.2
- Author:
- Niv Ingberg
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTriggered when a property value arrives from the space and is about to be injected in the user's object.getName()Returns a name used for display in monitoring tools.Class<?>Returns the class of the values which will be stored in the space.booleanIndicates whether equality matching is supported.Triggered when a property value is retrieved from the user's object and is about to be sent to the space.Methods inherited from class com.gigaspaces.client.storage_adapters.PropertyStorageAdapter
base64Decode, base64Encode, deserialize, serialize, supportsOrderedMatching, toBinaryWrapper, unwrapBinary, unzip, useBase64Wrapper, wrapBinary, zip
-
Constructor Details
-
BinaryAdapter
public BinaryAdapter()
-
-
Method Details
-
getName
Description copied from class:PropertyStorageAdapterReturns a name used for display in monitoring tools.- Overrides:
getNamein classPropertyStorageAdapter
-
getStorageClass
Description copied from class:PropertyStorageAdapterReturns the class of the values which will be stored in the space.- Overrides:
getStorageClassin classPropertyStorageAdapter
-
supportsEqualsMatching
public boolean supportsEqualsMatching()Description copied from class:PropertyStorageAdapterIndicates whether equality matching is supported. Defaults to false. Storage adapters who support equality should override this to true.- Overrides:
supportsEqualsMatchingin classPropertyStorageAdapter
-
toSpace
Description copied from class:PropertyStorageAdapterTriggered when a property value is retrieved from the user's object and is about to be sent to the space.- Specified by:
toSpacein classPropertyStorageAdapter- Parameters:
value- The original property value- Returns:
- The value which should be stored in space
- Throws:
IOException- Thrown when processing the property value fails.
-
fromSpace
Description copied from class:PropertyStorageAdapterTriggered when a property value arrives from the space and is about to be injected in the user's object.- Specified by:
fromSpacein classPropertyStorageAdapter- Parameters:
value- The value which was stored in the space- Returns:
- The value which should be set in the user's object.
- Throws:
IOException- Thrown when processing the property value fails.ClassNotFoundException- Thrown when processing the property value fails due to a class loading issue.
-