public class ReplicationFilterEntryDataWrapper extends AbstractEntryType implements IReplicationFilterEntry
IReplicationPacketEntryData
that has an inner entry and esposes it self as a
replication filter entry_typeDesc
Constructor and Description |
---|
ReplicationFilterEntryDataWrapper(AbstractReplicationPacketSingleEntryData data,
IEntryPacket entryPacket,
ITypeDesc typeDesc,
ReplicationOperationType operationType,
int objectType) |
Modifier and Type | Method and Description |
---|---|
void |
discard()
Discard this entry from the replication.
|
Object[] |
getFieldsValues()
Entry field Values.
|
Object |
getFieldValue(int position)
Retrieves the given field value by position.
|
Object |
getFieldValue(String fieldName)
Retrieves the given field value.
|
MarshalledObject |
getHandback()
Gets the callback handback.
|
Map.Entry |
getMapEntry()
Returns a Map.Entry (key-value pair) representation of this entity.
|
int |
getNotifyType()
Gets the notify type.
|
Object |
getObject(IJSpace space)
Converts to object.
|
int |
getObjectType()
Gets the object type as defined at
ObjectTypes . |
ReplicationOperationType |
getOperationType()
Gets the code of the replicated operation.
|
long |
getTimeToLive()
Entry time to live.
|
String |
getUID()
Entry UID.
|
int |
getVersion()
Ascending version of this Entry
|
boolean |
isDiscarded()
Checks if this entry was discarded.
|
boolean |
isTransient()
Checks entry is transient even if space is persistent.
|
void |
setFieldsValues(Object[] values)
Sets the object values array.
|
Object |
setFieldValue(int position,
Object value)
Associates the specified value with the specified field position.
|
Object |
setFieldValue(String fieldName,
Object value)
Associates the specified value with the specified field.
|
void |
setTimeToLive(long time)
Sets the lease time.
|
String |
toString() |
getClassName, getCodebase, getFieldPosition, getFieldsNames, getFieldsTypes, getFieldType, getIndexIndicators, getPrimaryKeyName, getProperties, getRoutingFieldName, getSuperClassesNames, hasDummyTTE, isFifo, isIndexedField, isReplicatable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getClassName, getCodebase, getFieldPosition, getFieldsNames, getFieldsTypes, getFieldType, getIndexIndicators, getPrimaryKeyName, getRoutingFieldName, getSuperClassesNames, isFifo, isIndexedField, isReplicatable
public ReplicationFilterEntryDataWrapper(AbstractReplicationPacketSingleEntryData data, IEntryPacket entryPacket, ITypeDesc typeDesc, ReplicationOperationType operationType, int objectType)
public void discard()
IReplicationFilterEntry
discard
in interface IReplicationFilterEntry
public int getObjectType()
IReplicationFilterEntry
ObjectTypes
.getObjectType
in interface IReplicationFilterEntry
ObjectTypes
public ReplicationOperationType getOperationType()
IReplicationFilterEntry
getOperationType
in interface IReplicationFilterEntry
public boolean isDiscarded()
IReplicationFilterEntry
isDiscarded
in interface IReplicationFilterEntry
true
if this entry was discardedpublic void setFieldsValues(Object[] values)
IReplicationFilterEntry
setFieldsValues
in interface IReplicationFilterEntry
values
- the new values arraypublic void setTimeToLive(long time)
IReplicationFilterEntry
setTimeToLive
in interface IReplicationFilterEntry
time
- time to live.Lease
public MarshalledObject getHandback()
IFilterEntry
Notice: only relevant if this entry represents a notify
template (see IFilterEntry.getNotifyType()
.
getHandback
in interface IFilterEntry
public int getNotifyType()
IFilterEntry
getNotifyType
in interface IFilterEntry
NOTIFY_NONE
is returned.NotifyModifiers
public Object getObject(IJSpace space) throws UnusableEntryException
AbstractEntryType
IGSEntry.setFieldValue(int, Object)
or IGSEntry.setFieldValue(String, Object)
.getObject
in interface IGSEntry
getObject
in class AbstractEntryType
space
- Space proxy.UnusableEntryException
- One or more fields in the entry cannot be deserialized, or the
class for the entry type itself cannot be deserialized.public Object getFieldValue(int position) throws IllegalArgumentException, IllegalStateException
IGSEntry
getFieldValue
in interface IGSEntry
position
- the field position.IllegalArgumentException
- if field name is not avaliableIllegalStateException
- if field values array was not properly setpublic Object getFieldValue(String fieldName) throws IllegalArgumentException, IllegalStateException
IGSEntry
getFieldValue
in interface IGSEntry
fieldName
- name of the field (e.g. Field.getName()
.IllegalArgumentException
- if field name is not avaliableIllegalStateException
- if field values array was not properly setpublic Object[] getFieldsValues()
IGSEntry
getFieldsValues
in interface IGSEntry
public Map.Entry getMapEntry()
IGSEntry
null
is returned.getMapEntry
in interface IGSEntry
null
if no
representation.Map.Entry
public long getTimeToLive()
IGSEntry
getTimeToLive
in interface IGSEntry
Lease
public int getVersion()
IGSEntry
getVersion
in interface IGSEntry
public boolean isTransient()
IGSEntry
isTransient
in interface IGSEntry
true
if entry is transientpublic Object setFieldValue(String fieldName, Object value) throws IllegalArgumentException, IllegalStateException
IGSEntry
setFieldValue
in interface IGSEntry
fieldName
- the field name.value
- value to be associated with the specified field.IllegalArgumentException
- if field name is not avaliableIllegalStateException
- if field values array was not properly setpublic Object setFieldValue(int position, Object value) throws IllegalArgumentException, IllegalStateException
IGSEntry
setFieldValue
in interface IGSEntry
position
- the field position.value
- value to be associated with the specified field.IllegalArgumentException
- if field name is not avaliableIllegalStateException
- if field values array was not properly setCopyright © GigaSpaces.