com.caucho.server.distcache
Class CacheUpdateWithSource

java.lang.Object
  extended by com.caucho.server.distcache.MnodeValue
      extended by com.caucho.server.distcache.MnodeUpdate
          extended by com.caucho.server.distcache.CacheUpdateWithSource
All Implemented Interfaces:
java.io.Serializable

public class CacheUpdateWithSource
extends MnodeUpdate
implements java.io.Serializable

Updates data for a cache

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.caucho.server.distcache.MnodeUpdate
NULL
 
Constructor Summary
protected CacheUpdateWithSource()
          Hessian zero-arg constructor
  CacheUpdateWithSource(long oldValueHash, long version)
           
  CacheUpdateWithSource(MnodeUpdate mnodeUpdate, StreamSource source)
          Create a new CachePut message
  CacheUpdateWithSource(MnodeValue mnodeValue, StreamSource source, int leaseOwner)
          Create a new CachePut message
 
Method Summary
 java.io.InputStream getInputStream()
          Returns the source stream.
 StreamSource getStreamSource()
          Returns the stream source
 java.lang.String toString()
           
 
Methods inherited from class com.caucho.server.distcache.MnodeUpdate
createNull, createNull, createRemote, getLastAccessTime, getLastModifiedTime, getLeaseOwner
 
Methods inherited from class com.caucho.server.distcache.MnodeValue
getAccessedExpireTimeout, getFlags, getLeaseExpireTimeout, getModifiedExpireTimeout, getUserFlags, getValueHash, getValueLength, getVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CacheUpdateWithSource

protected CacheUpdateWithSource()
Hessian zero-arg constructor


CacheUpdateWithSource

public CacheUpdateWithSource(MnodeUpdate mnodeUpdate,
                             StreamSource source)
Create a new CachePut message


CacheUpdateWithSource

public CacheUpdateWithSource(MnodeValue mnodeValue,
                             StreamSource source,
                             int leaseOwner)
Create a new CachePut message


CacheUpdateWithSource

public CacheUpdateWithSource(long oldValueHash,
                             long version)
Method Detail

getStreamSource

public StreamSource getStreamSource()
Returns the stream source


getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Returns the source stream.

Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class MnodeUpdate