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
See Also:
IReplicationFilter

Field Summary
static byte DISCARD
          Deprecated.  
static byte DUMMY
          Deprecated. use discard() and isDiscarded() instead
static byte EXTEND_LEASE
          Deprecated.  
static byte LEASE_EXPIRATION
          Deprecated.  
static byte TAKE
          Deprecated.  
static byte UPDATE
          Deprecated.  
static byte WRITE
          Deprecated.  
 
Method Summary
 void discard()
          Discard this entry from the replication.
 int getObjectType()
          Gets the object type as defined at ObjectTypes.
 byte getOpCode()
          Deprecated.  
 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.  
 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, getExternalEntry, getFieldPosition, getFieldsNames, getFieldsTypes, getFieldsValues, getFieldType, getFieldValue, getFieldValue, getFormat, getIndexIndicators, getMapEntry, getObject, getPrimaryKeyName, getSuperClassesNames, getTimeToLive, getUID, getVersion, isFifo, isIndexedField, isReplicatable, isTransient, setFieldValue, setFieldValue
 

Field Detail

WRITE

@Deprecated
static final byte WRITE
Deprecated. 
write/notify operation.

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

TAKE

@Deprecated
static final byte TAKE
Deprecated. 
take operation.

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

EXTEND_LEASE

@Deprecated
static final byte EXTEND_LEASE
Deprecated. 
lease renewal.

See Also:
Lease.renew(long), com.j_spaces.core.cluster.ReplicationOperationType.EXTEND_LEASE, Constant Field Values

UPDATE

@Deprecated
static final byte UPDATE
Deprecated. 
update operation.

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

DISCARD

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

See Also:
com.j_spaces.core.cluster.ReplicationOperationType.DISCARD, 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. 
lease expired.

See Also:
com.j_spaces.core.cluster.ReplicationOperationType.LEASE_EXPIRATION, Constant Field Values
Method Detail

getOpCode

@Deprecated
byte getOpCode()
Deprecated. 

Gets the code of the replicated operation.

Returns:
the op code
See Also:
getOperationType()

getOperationType

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

Returns:
the op code.

setOpCode

@Deprecated
void setOpCode(byte opCode)
Deprecated. 

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