com.caucho.distcache.cluster
Class TriadCacheCompareAndPut

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

public class TriadCacheCompareAndPut
extends MnodeUpdate
implements java.io.Serializable

Updates data for a cache

See Also:
Serialized Form

Constructor Summary
protected TriadCacheCompareAndPut()
          Hessian zero-arg constructor
  TriadCacheCompareAndPut(MnodeUpdate mnodeUpdate, byte[] testHash, 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
 byte[] getTestHash()
          Returns the key hash
 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

TriadCacheCompareAndPut

protected TriadCacheCompareAndPut()
Hessian zero-arg constructor


TriadCacheCompareAndPut

public TriadCacheCompareAndPut(MnodeUpdate mnodeUpdate,
                               byte[] testHash,
                               long leaseTimeout,
                               int leaseOwner,
                               StreamSource data,
                               boolean isResend)
Create a new CachePut message

Method Detail

getTestHash

public byte[] getTestHash()
Returns the key hash


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