com.caucho.distcache.cluster
Class CachePut

java.lang.Object
  extended by com.caucho.server.distcache.MnodeValue
      extended by com.caucho.server.distcache.MnodeUpdate
          extended by com.caucho.distcache.cluster.CachePut
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
StartupCachePut, TriadCachePut

public class CachePut
extends MnodeUpdate
implements java.io.Serializable

Updates data for a cache

See Also:
Serialized Form

Constructor Summary
protected CachePut()
          Hessian zero-arg constructor
  CachePut(byte[] hashKey, MnodeValue mnodeValue, long leaseTimeout, int leaseOwner, StreamSource data, boolean isResend)
          Create a new CachePut message
  CachePut(CachePut oldPut, boolean isResend)
          Create a new CachePut message
  CachePut(HashKey key, HashKey oldValueKey, long version)
           
  CachePut(MnodeUpdate mnodeUpdate, long leaseTimeout, int leaseOwner, StreamSource data, boolean isResend)
          Create a new CachePut message
 
Method Summary
 java.io.InputStream getInputStream()
          Returns the source stream.
 int getLeaseOwner()
          Returns the lease owner
 long getLeaseTimeout()
          Returns the lease timeout
 StreamSource getStreamSource()
          Returns the stream source
 boolean isResend()
          returns true if this is a resend message.
 java.lang.String toString()
           
 
Methods inherited from class com.caucho.server.distcache.MnodeUpdate
getKeyHash
 
Methods inherited from class com.caucho.server.distcache.MnodeValue
getAccessedExpireTimeout, getCacheHash, getFlags, getModifiedExpireTimeout, getUserFlags, getValueHash, getValueLength, getVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CachePut

protected CachePut()
Hessian zero-arg constructor


CachePut

public CachePut(MnodeUpdate mnodeUpdate,
                long leaseTimeout,
                int leaseOwner,
                StreamSource data,
                boolean isResend)
Create a new CachePut message


CachePut

public CachePut(byte[] hashKey,
                MnodeValue mnodeValue,
                long leaseTimeout,
                int leaseOwner,
                StreamSource data,
                boolean isResend)
Create a new CachePut message


CachePut

public CachePut(CachePut oldPut,
                boolean isResend)
Create a new CachePut message


CachePut

public CachePut(HashKey key,
                HashKey oldValueKey,
                long version)
Method Detail

getLeaseTimeout

public long getLeaseTimeout()
Returns the lease timeout


getLeaseOwner

public int getLeaseOwner()
Returns the lease owner


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

isResend

public boolean isResend()
returns true if this is a resend message.


toString

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