com.j_spaces.core.cluster
Interface IReplicationFilterEntry

All Superinterfaces:
IFilterEntry, IGSEntry

public interface IReplicationFilterEntry
extends IFilterEntry

Represents an entry instance passed to the IReplicationFilter.

Since:
5.0
See Also:
IReplicationFilter

Field Summary
static byte DISCARD
          Discard operation - this entry will be discarded from replication.
static byte DUMMY
          Deprecated. use discard() and isDiscarded() instead
static byte EXTEND_LEASE
          lease renewal.
static byte LEASE_EXPIRATION
          lease expired.
static byte TAKE
          take operation.
static byte UPDATE
          update operation.
static byte WRITE
          write/notify operation.
 
Method Summary
 void discard()
          Discard this entry from the replication.
 int getObjectType()
          Gets the object type as defined at ObjectTypes.
 byte getOpCode()
          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)
          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

static final byte WRITE
write/notify operation.

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

TAKE

static final byte TAKE
take operation.

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

EXTEND_LEASE

static final byte EXTEND_LEASE
lease renewal.

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

UPDATE

static final byte UPDATE
update operation.

See Also:
IJSpace.update(net.jini.core.entry.Entry, net.jini.core.transaction.Transaction, long, long, int), 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

DISCARD

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

See Also:
discard(), Constant Field Values

LEASE_EXPIRATION

static final byte LEASE_EXPIRATION
lease expired.

See Also:
Constant Field Values
Method Detail

getOpCode

byte getOpCode()
Gets the code of the replicated operation.

Returns:
the op code

setOpCode

void setOpCode(byte 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