public class MirrorChangeBulkDataItem extends Object implements InternalBulkItem, DataSyncChangeSet
Constructor and Description |
---|
MirrorChangeBulkDataItem(ITypeDesc typeDesc,
String uid,
Object id,
int version,
long timeToLive,
Collection<SpaceEntryMutator> mutators) |
Modifier and Type | Method and Description |
---|---|
SpaceDocument |
getDataAsDocument() |
Object |
getDataAsObject() |
DataSyncOperationType |
getDataSyncOperationType() |
Object |
getId() |
String |
getIdPropertyName() |
Object |
getIdPropertyValue() |
Object |
getItem()
Return the data item
|
Map<String,Object> |
getItemValues() |
short |
getOperation()
Return the operation to execute
|
Collection<ChangeOperation> |
getOperations() |
Object |
getSpaceId() |
long |
getTimeToLive() |
SpaceTypeDescriptor |
getTypeDescriptor() |
String |
getTypeName() |
String |
getUid() |
int |
getVersion() |
void |
setConverter(IDataConverter<IEntryPacket> converter) |
boolean |
supportsDataAsDocument() |
boolean |
supportsDataAsObject() |
boolean |
supportsGetSpaceId() |
boolean |
supportsGetTypeDescriptor() |
String |
toString() |
public MirrorChangeBulkDataItem(ITypeDesc typeDesc, String uid, Object id, int version, long timeToLive, Collection<SpaceEntryMutator> mutators)
public short getOperation()
BulkItem
getOperation
in interface BulkItem
BulkItem.REMOVE
/BulkItem.UPDATE
/BulkItem.WRITE
/BulkItem.PARTIAL_UPDATE
public String getTypeName()
getTypeName
in interface BulkItem
public String getIdPropertyName()
getIdPropertyName
in interface BulkItem
public Object getIdPropertyValue()
getIdPropertyValue
in interface BulkItem
public Map<String,Object> getItemValues()
getItemValues
in interface BulkItem
public String getUid()
getUid
in interface DataSyncOperation
public DataSyncOperationType getDataSyncOperationType()
getDataSyncOperationType
in interface DataSyncOperation
public Object getDataAsObject()
getDataAsObject
in interface DataSyncOperation
DataSyncOperation.supportsDataAsObject()
return true, otherwise an exception will be thrown.public SpaceDocument getDataAsDocument()
getDataAsDocument
in interface DataSyncOperation
DataSyncOperation.supportsDataAsDocument()
return true, otherwise an exception will be thrown.public SpaceTypeDescriptor getTypeDescriptor()
getTypeDescriptor
in interface DataSyncOperation
DataSyncOperation.supportsGetTypeDescriptor()
return true, otherwise an exception will be thrown.public boolean supportsGetTypeDescriptor()
supportsGetTypeDescriptor
in interface DataSyncOperation
DataSyncOperation.getTypeDescriptor()
operation.public boolean supportsDataAsObject()
supportsDataAsObject
in interface DataSyncOperation
DataSyncOperation.getDataAsObject()
operation.public boolean supportsDataAsDocument()
supportsDataAsDocument
in interface DataSyncOperation
DataSyncOperation.getDataAsDocument()
operation.public void setConverter(IDataConverter<IEntryPacket> converter)
setConverter
in interface InternalBulkItem
public Collection<ChangeOperation> getOperations()
getOperations
in interface DataSyncChangeSet
public Object getId()
getId
in interface DataSyncChangeSet
public int getVersion()
getVersion
in interface DataSyncChangeSet
public long getTimeToLive()
getTimeToLive
in interface DataSyncChangeSet
public boolean supportsGetSpaceId()
supportsGetSpaceId
in interface DataSyncOperation
DataSyncOperation.getSpaceId()
operation.public Object getSpaceId()
getSpaceId
in interface DataSyncOperation
Copyright © GigaSpaces.