GigaSpaces XAP 7.1 API

com.j_spaces.core.cluster
Interface IReplicationFilterEntry

All Superinterfaces:
IFilterEntry, IGSEntry, Serializable

public interface IReplicationFilterEntry
extends IFilterEntry

Represents an entry instance passed to the IReplicationFilter.

Since:
5.0
Author:
Guy Korland
See Also:
IReplicationFilter

Field Summary
static byte DISCARD
          Deprecated. use ReplicationOperationType.DISCARD instead.
static byte DUMMY
          Deprecated. use discard() and isDiscarded() instead
static byte EXTEND_LEASE
          Deprecated. use ReplicationOperationType.EXTEND_LEASE instead.
static byte LEASE_EXPIRATION
          Deprecated. use ReplicationOperationType.LEASE_EXPIRATION instead
static byte TAKE
          Deprecated. use ReplicationOperationType.TAKE instead.
static byte UPDATE
          Deprecated. use ReplicationOperationType.UPDATE instead.
static byte WRITE
          Deprecated. use ReplicationOperationType.WRITE instead.
 
Method Summary
 void discard()
          Discard this entry from the replication.
 int getObjectType()
          Gets the object type as defined at ObjectTypes.
 byte getOpCode()
          Deprecated. use getOperationType() instead.
 ReplicationOperationType getOperationType()
          Gets the code of the replicated operation.
 boolean isDiscarded()
          Checks if this entry was discarded.
 void setFieldsValues(Object[] values)
          Sets the object values array.
 void setOpCode(byte opCode)
          Deprecated. use setOperationType(ReplicationOperationType) instead.
 void setOperationType(ReplicationOperationType opCode)
          Sets the code of the replicated operation.
 void setTimeToLive(long time)
          Sets the lease time.
 
Methods inherited from interface com.j_spaces.core.filters.entry.IFilterEntry
getHandback, getNotifyType
 
Methods inherited from interface com.j_spaces.core.IGSEntry
getClassName, getCodebase, getEntry, getEntryType, getExternalEntry, getFieldPosition, getFieldsNames, getFieldsTypes, getFieldsValues, getFieldType, getFieldValue, getFieldValue, getFormat, getIndexIndicators, getMapEntry, getObject, getPrimaryKeyName, getPrimitiveFields, getRoutingFieldName, getSuperClassesNames, getTimeToLive, getUID, getVersion, isFifo, isIndexedField, isReplicatable, isTransient, setFieldValue, setFieldValue
 

Field Detail

WRITE

@Deprecated
static final byte WRITE
Deprecated. use ReplicationOperationType.WRITE instead.
write/notify operation.

See Also:
JavaSpace.write(net.jini.core.entry.Entry,net.jini.core.transaction.Transaction,long), Constant Field Values

TAKE

@Deprecated
static final byte TAKE
Deprecated. use ReplicationOperationType.TAKE instead.
take operation.

See Also:
JavaSpace.take(net.jini.core.entry.Entry,net.jini.core.transaction.Transaction,long), Constant Field Values

EXTEND_LEASE

@Deprecated
static final byte EXTEND_LEASE
Deprecated. use ReplicationOperationType.EXTEND_LEASE instead.
lease renewal.

See Also:
Lease.renew(long), Constant Field Values

UPDATE

@Deprecated
static final byte UPDATE
Deprecated. use ReplicationOperationType.UPDATE instead.
update operation.

See Also:
IJSpace.update(net.jini.core.entry.Entry,net.jini.core.transaction.Transaction,long,long,int), Constant Field Values

DISCARD

@Deprecated
static final byte DISCARD
Deprecated. use ReplicationOperationType.DISCARD instead.
Discard operation - this entry will be discarded from replication. This opcode is returned by getOpCode() after discard() is called.

See Also:
Constant Field Values

DUMMY

@Deprecated
static final byte DUMMY
Deprecated. use discard() and isDiscarded() instead
none operation - operation with this type will be ignored by the space.

See Also:
Constant Field Values

LEASE_EXPIRATION

@Deprecated
static final byte LEASE_EXPIRATION
Deprecated. use ReplicationOperationType.LEASE_EXPIRATION instead
lease expired.

See Also:
Constant Field Values
Method Detail

getOpCode

@Deprecated
byte getOpCode()
Deprecated. use getOperationType() instead.

Gets the code of the replicated operation.

Returns:
the operation code

getOperationType

ReplicationOperationType getOperationType()
Gets the code of the replicated operation.

Returns:
the operation code.

setOpCode

@Deprecated
void setOpCode(byte opCode)
Deprecated. use setOperationType(ReplicationOperationType) instead.

Sets the code of the replicated operation.

Parameters:
opCode - the code to set

setOperationType

void setOperationType(ReplicationOperationType opCode)
Sets the code of the replicated operation.

Parameters:
opCode - the code to set

getObjectType

int getObjectType()
Gets the object type as defined at ObjectTypes.

Returns:
the object type
See Also:
ObjectTypes

setFieldsValues

void setFieldsValues(Object[] values)
Sets the object values array.

Parameters:
values - the new values array

setTimeToLive

void setTimeToLive(long time)
Sets the lease time.

Parameters:
time - time to live.
See Also:
Lease

discard

void discard()
Discard this entry from the replication.


isDiscarded

boolean isDiscarded()
Checks if this entry was discarded.

Returns:
true if this entry was discarded

GigaSpaces XAP 7.1 API

Copyright © GigaSpaces.