com.gigaspaces.sync
Interface DataSyncOperation
- All Known Subinterfaces:
- BulkItem, DataConflictOperation
public interface DataSyncOperation
Represents a single data operation
- Since:
- 9.0.1
- Author:
- eitany
getSpaceId
Object getSpaceId()
- Returns:
- The operation's data Id.
- Since:
- 9.5
getUid
String getUid()
- Returns:
- The operation's data UID.
getDataSyncOperationType
DataSyncOperationType getDataSyncOperationType()
- Returns:
- the operation type.
getDataAsObject
Object getDataAsObject()
- Returns:
- the operation data as object (i.e pojo), this can only be used if
supportsDataAsObject()
return true, otherwise an exception
will be thrown.
getDataAsDocument
SpaceDocument getDataAsDocument()
- Returns:
- the operation data as space document, this can only be used if
supportsDataAsDocument()
return true, otherwise an exception
will be thrown.
getTypeDescriptor
SpaceTypeDescriptor getTypeDescriptor()
- Returns:
- the type descriptor of the data type. this can only be used if
supportsGetTypeDescriptor()
return true, otherwise an exception
will be thrown.
supportsGetTypeDescriptor
boolean supportsGetTypeDescriptor()
- Returns:
- whether this data operation support the
getTypeDescriptor()
operation.
supportsDataAsObject
boolean supportsDataAsObject()
- Returns:
- whether this data operation support the
getDataAsObject()
operation.
supportsDataAsDocument
boolean supportsDataAsDocument()
- Returns:
- whether this data operation support the
getDataAsDocument()
operation.
supportsGetSpaceId
boolean supportsGetSpaceId()
- Returns:
- whether this data operation support the
getSpaceId()
operation. - Since:
- 9.5
Copyright © GigaSpaces.