GigaSpaces XAP 9.1 API

com.gigaspaces.sync
Interface DataSyncOperation

All Known Subinterfaces:
BulkItem, DataConflictOperation

public interface DataSyncOperation

Represents a single data operation

Since:
9.0.1
Author:
eitany

Method Summary
 SpaceDocument getDataAsDocument()
           
 Object getDataAsObject()
           
 com.gigaspaces.sync.DataSyncOperationType getDataSyncOperationType()
           
 SpaceTypeDescriptor getTypeDescriptor()
           
 String getUid()
           
 boolean supportsDataAsDocument()
           
 boolean supportsDataAsObject()
           
 boolean supportsGetTypeDescriptor()
           
 

Method Detail

getUid

String getUid()
Returns:
The operation UID.

getDataSyncOperationType

com.gigaspaces.sync.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.

GigaSpaces XAP 9.1 API

Copyright © GigaSpaces.