GigaSpaces XAP 7.1 API

com.j_spaces.core.client
Class MetaDataEntry

java.lang.Object
  extended by com.j_spaces.core.client.MetaDataEntry
All Implemented Interfaces:
IMetaDataEntry, Serializable, net.jini.core.entry.Entry
Direct Known Subclasses:
EventDrivenSpaceRemotingEntry, InternalEventEntry, InternalQueueEntry, SyncSpaceRemotingEntry

Deprecated. Use SpaceClass instead.

@Deprecated
public class MetaDataEntry
extends Object
implements IMetaDataEntry

This class implements entry and provide optimistic locking and UID capabilities.

 
 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();
   }
  } 
 
 

Version:
Igor Goldenberg, 3.2
See Also:
Serialized Form

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

MetaDataEntry

public MetaDataEntry()
Deprecated. 
no args public constructor

Method Detail

__setEntryInfo

public void __setEntryInfo(EntryInfo entryInfo)
Deprecated. 
Set entry info.

Specified by:
__setEntryInfo in interface IMetaDataEntry
Parameters:
entryInfo - Entry Info.

__getEntryInfo

public EntryInfo __getEntryInfo()
Deprecated. 
Returns entry info.

Specified by:
__getEntryInfo in interface IMetaDataEntry
Returns:
Entry info.

setFifo

public void setFifo(boolean fifo)
Deprecated. 
Enable/Disable FIFO mechanism.

Specified by:
setFifo in interface IMetaDataEntry
Parameters:
fifo - true enable FIFO, otherwise false.

isFifo

public boolean isFifo()
Deprecated. 
Returns FIFO status.

Specified by:
isFifo in interface IMetaDataEntry
Returns:
true if FIFO enabled, otherwise false.

makePersistent

public void makePersistent()
Deprecated. 
Makes this entry a persistent entry. Can be called only if the entry has not been written yet to the space.

Specified by:
makePersistent in interface IMetaDataEntry

makeTransient

public void makeTransient()
Deprecated. 
Makes this entry a transient entry.

Specified by:
makeTransient in interface IMetaDataEntry

isTransient

public boolean isTransient()
Deprecated. 
Returns true if entry is transient, otherwise false.

Specified by:
isTransient in interface IMetaDataEntry
Returns:
true if entry is transient, otherwise false.

setTransient

public void setTransient(boolean isTransient)
Deprecated. 
Sets the entry to be transient (true) or persistent (false).

Parameters:
isTransient -

setNOWriteLeaseMode

public void setNOWriteLeaseMode(boolean noWriteLeaseMode)
Deprecated. 
Set true do not return Lease object after write, false return Lease object after write.

Specified by:
setNOWriteLeaseMode in interface IMetaDataEntry
Parameters:
noWriteLeaseMode - write mode.

isNOWriteLeaseMode

public boolean isNOWriteLeaseMode()
Deprecated. 
Check write mode.

Specified by:
isNOWriteLeaseMode in interface IMetaDataEntry
Returns:
true if do not return Lease object after write, otherwise false.

_writeExternal

protected void _writeExternal(ObjectOutput out)
                       throws IOException
Deprecated. 
Writes to the ObjectOutput stream by optimized way the meta-info of MetaDataEntry.

Throws:
IOException

_readExternal

protected void _readExternal(ObjectInput in)
                      throws IOException
Deprecated. 
Reads from the ObjectInput stream by optimized way the meta-info of MetaDataEntry.

Throws:
IOException

GigaSpaces XAP 7.1 API

Copyright © GigaSpaces.