|
GigaSpaces XAP 7.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.j_spaces.core.client.MetaDataEntry
SpaceClass
instead.
@Deprecated public class MetaDataEntry
This class implements entry and provide optimistic locking and UID capabilities.
For more detailed information about MetaDataEntry class usage see:
Optimistic locking actions
IMPORTANT NOTE: In order to serialize meta-info of MetaDataEntry when the extended class
is java.io.Externalizable the extended class should invoke explicitly the
super methods _writeExternal()/_readExternal() of MetaDataEntry within writeExternal/readExternal of extended class.
For example:
public class A extends MetaDataEntry
implements java.io.Externalizable
{
public long age;
public void writeExternal(java.io.ObjectOutput out)
throws IOException
{
super._writeExternal( out );
out.writeLong( age );
}
public void readExternal(java.io.ObjectInput in)
throws IOException, ClassNotFoundException
{
super._readExternal( in );
age = in.readLong();
}
}
Constructor Summary | |
---|---|
MetaDataEntry()
Deprecated. no args public constructor |
Method Summary | |
---|---|
EntryInfo |
__getEntryInfo()
Deprecated. Returns entry info. |
void |
__setEntryInfo(EntryInfo entryInfo)
Deprecated. Set entry info. |
protected void |
_readExternal(ObjectInput in)
Deprecated. Reads from the ObjectInput stream by optimized way the meta-info of MetaDataEntry. |
protected void |
_writeExternal(ObjectOutput out)
Deprecated. Writes to the ObjectOutput stream by optimized way the meta-info of MetaDataEntry. |
boolean |
isFifo()
Deprecated. Returns FIFO status. |
boolean |
isNOWriteLeaseMode()
Deprecated. Check write mode. |
boolean |
isTransient()
Deprecated. Returns true if entry is transient, otherwise false . |
void |
makePersistent()
Deprecated. Makes this entry a persistent entry. |
void |
makeTransient()
Deprecated. Makes this entry a transient entry. |
void |
setFifo(boolean fifo)
Deprecated. Enable/Disable FIFO mechanism. |
void |
setNOWriteLeaseMode(boolean noWriteLeaseMode)
Deprecated. Set true do not return Lease object after write,
false return Lease object after write. |
void |
setTransient(boolean isTransient)
Deprecated. Sets the entry to be transient (true) or persistent (false). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MetaDataEntry()
Method Detail |
---|
public void __setEntryInfo(EntryInfo entryInfo)
__setEntryInfo
in interface IMetaDataEntry
entryInfo
- Entry Info.public EntryInfo __getEntryInfo()
__getEntryInfo
in interface IMetaDataEntry
public void setFifo(boolean fifo)
setFifo
in interface IMetaDataEntry
fifo
- true
enable FIFO, otherwise false
.public boolean isFifo()
isFifo
in interface IMetaDataEntry
true
if FIFO enabled, otherwise false
.public void makePersistent()
makePersistent
in interface IMetaDataEntry
public void makeTransient()
makeTransient
in interface IMetaDataEntry
public boolean isTransient()
true
if entry is transient, otherwise false
.
isTransient
in interface IMetaDataEntry
true
if entry is transient, otherwise false
.public void setTransient(boolean isTransient)
isTransient
- public void setNOWriteLeaseMode(boolean noWriteLeaseMode)
true
do not return Lease object after write,
false
return Lease object after write.
setNOWriteLeaseMode
in interface IMetaDataEntry
noWriteLeaseMode
- write mode.public boolean isNOWriteLeaseMode()
isNOWriteLeaseMode
in interface IMetaDataEntry
true
if do not return Lease object after write, otherwise false
.protected void _writeExternal(ObjectOutput out) throws IOException
IOException
protected void _readExternal(ObjectInput in) throws IOException
IOException
|
GigaSpaces XAP 7.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |