Package com.gigaspaces.sync.serializable
Class ExternalizableDataSyncOperation
java.lang.Object
com.gigaspaces.sync.serializable.ExternalizableDataSyncOperation
- All Implemented Interfaces:
SmartExternalizable,DataSyncOperation,Externalizable,Serializable
public class ExternalizableDataSyncOperation
extends Object
implements SmartExternalizable, DataSyncOperation
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DataSyncOperation[]convertDataSyncOperations(DataSyncOperation[] dataSyncOperations) getUid()voidbooleanbooleanbooleanbooleanvoidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.gigaspaces.serialization.SmartExternalizable
enabledSmartExternalizableWithReference
-
Constructor Details
-
ExternalizableDataSyncOperation
public ExternalizableDataSyncOperation() -
ExternalizableDataSyncOperation
-
-
Method Details
-
getSpaceId
- Specified by:
getSpaceIdin interfaceDataSyncOperation- Returns:
- The operation's data Id.
-
getUid
- Specified by:
getUidin interfaceDataSyncOperation- Returns:
- The operation's data UID.
-
getDataSyncOperationType
- Specified by:
getDataSyncOperationTypein interfaceDataSyncOperation- Returns:
- the operation type.
-
getDataAsObject
- Specified by:
getDataAsObjectin interfaceDataSyncOperation- Returns:
- the operation data as object (i.e pojo), this can only be used if
DataSyncOperation.supportsDataAsObject()return true, otherwise an exception will be thrown.
-
getDataAsDocument
- Specified by:
getDataAsDocumentin interfaceDataSyncOperation- Returns:
- the operation data as space document, this can only be used if
DataSyncOperation.supportsDataAsDocument()return true, otherwise an exception will be thrown.
-
getTypeDescriptor
- Specified by:
getTypeDescriptorin interfaceDataSyncOperation- Returns:
- the type descriptor of the data type. this can only be used if
DataSyncOperation.supportsGetTypeDescriptor()return true, otherwise an exception will be thrown.
-
supportsGetTypeDescriptor
public boolean supportsGetTypeDescriptor()- Specified by:
supportsGetTypeDescriptorin interfaceDataSyncOperation- Returns:
- whether this data operation support the
DataSyncOperation.getTypeDescriptor()operation.
-
supportsDataAsObject
public boolean supportsDataAsObject()- Specified by:
supportsDataAsObjectin interfaceDataSyncOperation- Returns:
- whether this data operation support the
DataSyncOperation.getDataAsObject()operation.
-
supportsDataAsDocument
public boolean supportsDataAsDocument()- Specified by:
supportsDataAsDocumentin interfaceDataSyncOperation- Returns:
- whether this data operation support the
DataSyncOperation.getDataAsDocument()operation.
-
supportsGetSpaceId
public boolean supportsGetSpaceId()- Specified by:
supportsGetSpaceIdin interfaceDataSyncOperation- Returns:
- whether this data operation support the
DataSyncOperation.getSpaceId()operation.
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
convertDataSyncOperations
-