VMware GemFire Native C++ Reference
9.1
|
Implement a date object based on epoch of January 1, 1970 00:00:00 GMT that can serve as a distributable key object for caching as well as being a date value. More...
Inherits apache::geode::client::CacheableKey.
Public Member Functions | |
__DEPRECATED__ ("Use localtime or similar for calendar conversions.") virtual int day() const | |
__DEPRECATED__ ("Use localtime or similar for calendar conversions.") virtual int month() const | |
__DEPRECATED__ ("Use localtime or similar for calendar conversions.") virtual int year() const | |
virtual int32_t | classId () const |
Return the classId of the instance being serialized. More... | |
virtual int8_t | DSFID () const |
return the Data Serialization Fixed ID type. More... | |
virtual Serializable * | fromData (DataInput &input) |
deserialize this object More... | |
virtual int32_t | hashcode () const |
Returns a hash code value for this object. More... | |
virtual int32_t | logString (char *buffer, int32_t maxLength) const |
used to render as a string for logging. More... | |
virtual int64_t | milliseconds () const |
virtual uint32_t | objectSize () const |
virtual bool | operator== (const CacheableKey &other) const |
void | preserveSB () const |
Atomically increment reference count. More... | |
int32_t | refCount () |
void | releaseSB () const |
Atomically decrement reference count, the SharedBase object is automatically deleted when its reference count goes to zero. More... | |
virtual void | toData (DataOutput &output) const |
serialize this object More... | |
virtual CacheableStringPtr | toString () const |
Display this object as 'string', which depends on the implementation in the subclasses. More... | |
virtual int8_t | typeId () const |
return the typeId byte of the instance being serialized. More... | |
virtual | ~CacheableDate () |
Destructor. More... | |
Static Public Member Functions | |
template<class PRIM > | |
static CacheableKeyPtr | create (const PRIM value) |
Factory method that creates the key type that matches the type of value. More... | |
static CacheableDatePtr | create () |
Factory method for creating an instance of CacheableDate. More... | |
static Serializable * | createDeserializable () |
creation function for dates. More... | |
static void | registerPdxSerializer (PdxSerializerPtr pdxSerializer) |
Register the PDX serializer which can handle serialization for instances of user domain classes. More... | |
static void | registerPdxType (TypeFactoryMethodPdx creationFunction) |
register an Pdx instance factory method for a given type. More... | |
static void | registerType (TypeFactoryMethod creationFunction) |
register an instance factory method for a given type. More... | |
Protected Member Functions | |
CacheableDate (const time_t value=0) | |
Constructor, used for deserialization. More... | |
CacheableDate (const time_point &value) | |
Construct from std::chrono::time_point<std::chrono::system_clock>. More... | |
CacheableDate (const duration &value) | |
Construct from std::chrono::seconds since POSIX epoch. More... | |
Implement a date object based on epoch of January 1, 1970 00:00:00 GMT that can serve as a distributable key object for caching as well as being a date value.
|
virtual |
Destructor.
|
protected |
Constructor, used for deserialization.
|
protected |
Construct from std::chrono::time_point<std::chrono::system_clock>.
|
protected |
Construct from std::chrono::seconds since POSIX epoch.
apache::geode::client::CacheableDate::__DEPRECATED__ | ( | "Use localtime or similar for calendar conversions." | ) | const |
apache::geode::client::CacheableDate::__DEPRECATED__ | ( | "Use localtime or similar for calendar conversions." | ) | const |
apache::geode::client::CacheableDate::__DEPRECATED__ | ( | "Use localtime or similar for calendar conversions." | ) | const |
|
virtual |
Return the classId of the instance being serialized.
This is used by deserialization to determine what instance type to create and deserialize into.
Implements apache::geode::client::Serializable.
|
inlinestaticinherited |
Factory method that creates the key type that matches the type of value.
For customer defined derivations of CacheableKey, the method apache::geode::client::createKey may be overloaded. For pointer types (e.g. char*) the method apache::geode::client::createKeyArr may be overloaded.
|
inlinestatic |
Factory method for creating an instance of CacheableDate.
|
static |
creation function for dates.
|
virtualinherited |
return the Data Serialization Fixed ID type.
This is used to determine what instance type to create and deserialize into.
Note that this should not be overridden by custom implementations and is reserved only for builtin types.
Reimplemented in apache::geode::client::Struct, and apache::geode::client::CacheableUndefined.
|
virtual |
deserialize this object
Implements apache::geode::client::Serializable.
|
virtual |
Returns a hash code value for this object.
The result is the exclusive OR of the two halves of the primitive long value returned by the milliseconds() method.
Implements apache::geode::client::CacheableKey.
|
virtual |
used to render as a string for logging.
Reimplemented from apache::geode::client::CacheableKey.
|
virtual |
|
inlinevirtual |
Reimplemented from apache::geode::client::Serializable.
|
virtual |
Implements apache::geode::client::CacheableKey.
|
inherited |
Atomically increment reference count.
|
inlineinherited |
|
staticinherited |
Register the PDX serializer which can handle serialization for instances of user domain classes.
|
staticinherited |
register an Pdx instance factory method for a given type.
IllegalStateException | if the typeName has already been registered, or there is an error in registering the type; check errno for more information in the latter case. |
|
staticinherited |
register an instance factory method for a given type.
During registration the factory will be invoked to extract the typeId to associate with this function.
IllegalStateException | if the typeId has already been registered, or there is an error in registering the type; check errno for more information in the latter case. |
|
inherited |
Atomically decrement reference count, the SharedBase object is automatically deleted when its reference count goes to zero.
|
virtual |
serialize this object
Implements apache::geode::client::Serializable.
|
virtual |
Display this object as 'string', which depends on the implementation in the subclasses.
The default implementation renders the classname.
The return value may be a temporary, so the caller has to ensure that the SharedPtr count does not go down to zero by storing the result in a variable or otherwise.
Reimplemented from apache::geode::client::Serializable.
|
virtual |
return the typeId byte of the instance being serialized.
This is used by deserialization to determine what instance type to create and deserialize into.
Reimplemented from apache::geode::client::Serializable.