| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.j_spaces.core.client.MetaDataEntry
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()
no args public constructor  | 
|
| Method Summary | |
|---|---|
 EntryInfo | 
__getEntryInfo()
Returns entry info.  | 
 void | 
__setEntryInfo(EntryInfo entryInfo)
Set entry info.  | 
 boolean | 
isFifo()
Returns FIFO status.  | 
 boolean | 
isNOWriteLeaseMode()
Check write mode.  | 
 boolean | 
isTransient()
Returns true if entry is transient, otherwise false. | 
 void | 
makePersistent()
Makes this entry a persistent entry.  | 
 void | 
makeTransient()
Makes this entry a transient entry.  | 
 void | 
setFifo(boolean fifo)
Enable/Disable FIFO mechanism.  | 
 void | 
setNOWriteLeaseMode(boolean noWriteLeaseMode)
Set true do not return Lease object after write,
 false return Lease object after write. | 
| Methods inherited from class java.lang.Object | 
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public MetaDataEntry()
| Method Detail | 
|---|
public void __setEntryInfo(EntryInfo entryInfo)
__setEntryInfo in interface IMetaDataEntryentryInfo - Entry Info.public EntryInfo __getEntryInfo()
__getEntryInfo in interface IMetaDataEntrypublic void setFifo(boolean fifo)
setFifo in interface IMetaDataEntryfifo - true enable FIFO, otherwise false.public boolean isFifo()
isFifo in interface IMetaDataEntrytrue if FIFO enabled, otherwise false.public void makePersistent()
makePersistent in interface IMetaDataEntrypublic void makeTransient()
makeTransient in interface IMetaDataEntrypublic boolean isTransient()
true if entry is transient, otherwise false.
isTransient in interface IMetaDataEntrytrue if entry is transient, otherwise false.public void setNOWriteLeaseMode(boolean noWriteLeaseMode)
true do not return Lease object after write,
 false return Lease object after write.
setNOWriteLeaseMode in interface IMetaDataEntrynoWriteLeaseMode - write mode.public boolean isNOWriteLeaseMode()
isNOWriteLeaseMode in interface IMetaDataEntrytrue if do not return Lease object after write, otherwise false.
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||