VMware GemFire Native Client Cache Reference  9.0.6
Delta.hpp
Go to the documentation of this file.
1 #ifndef DELTA_HPP_
2 #define DELTA_HPP_
3 
4 /*=========================================================================
5  * Copyright (c) 2002-2014 Pivotal Software, Inc. All Rights Reserved.
6  * This product is protected by U.S. and international copyright
7  * and intellectual property laws. Pivotal products are covered by
8  * more patents listed at http://www.pivotal.io/patents.
9  *========================================================================
10  */
11 
16 #include "Cacheable.hpp"
17 #include "DataInput.hpp"
18 #include "DataOutput.hpp"
19 namespace gemfire {
20 
29  class Delta {
30 
31  public:
32 
38  virtual bool hasDelta( ) = 0;
39 
47  virtual void toDelta( DataOutput& out ) const = 0;
48 
58  virtual void fromDelta( DataInput& in ) = 0;
59 
66  virtual DeltaPtr clone( );
67 
68  virtual ~Delta()
69  {
70  }
71  };
72 
73 } //namespace gemfire
74 
75 #endif /* DELTA_HPP_ */
Provide operations for writing primitive data values, byte arrays, strings, Serializable objects to a...
Definition: DataOutput.hpp:62
This interface is used for delta propagation.
Definition: Delta.hpp:29
virtual void fromDelta(DataInput &in)=0
Reads in delta information to this object in a user-defined format.
This namespace contains all the GemFire C++ API classes, enumerations and globals.
Definition: Assert.hpp:19
virtual DeltaPtr clone()
Creates a copy of the object on which delta is to be applied via notification.
Provide operations for reading primitive data values, byte arrays, strings, Serializable objects from...
Definition: DataInput.hpp:44
virtual bool hasDelta()=0
hasDelta( ) is invoked by GemFire during Region::put( CacheableKeyPtr, CacheablePtr ) to determine if...
virtual void toDelta(DataOutput &out) const =0
Writes out delta information to out in a user-defined format.
Defines a reference counted shared pointer.
Definition: SharedPtr.hpp:35

GemFire C++ Cache API Documentation