public class FastAssetAccount extends java.lang.Object implements objects.ConfigurableObject, TimestampedObject, UpdatableObject, com.gemstone.gemfire.cache.util.ObjectSizer, com.gemstone.gemfire.DataSerializable
| Modifier and Type | Field and Description |
|---|---|
protected int |
acctId |
protected java.util.Map |
assets |
protected java.lang.String |
customerName |
protected static boolean |
encodeTimestamp |
protected static boolean |
fineEnabled |
protected double |
netWorth |
protected long |
timestamp |
| Constructor and Description |
|---|
FastAssetAccount() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
void |
fromData(java.io.DataInput in) |
int |
getAcctId() |
java.util.Map |
getAssets() |
java.lang.String |
getCustomerName() |
int |
getIndex() |
double |
getNetWorth() |
long |
getTimestamp()
Returns the object creation timestamp encoded in the object.
|
int |
hashCode() |
void |
incrementNetWorth() |
void |
init(int index) |
void |
resetTimestamp()
Resets the timestamp encoded in the object to the current time.
|
int |
sizeof(java.lang.Object o) |
void |
toData(java.io.DataOutput out) |
java.lang.String |
toString() |
void |
update()
Updates one or more object fields.
|
void |
validate(int index) |
protected static boolean fineEnabled
protected static final boolean encodeTimestamp
protected int acctId
protected java.lang.String customerName
protected double netWorth
protected java.util.Map assets
protected long timestamp
public void init(int index)
init in interface objects.ConfigurableObjectpublic int getAcctId()
public java.lang.String getCustomerName()
public double getNetWorth()
public void incrementNetWorth()
public java.util.Map getAssets()
public int getIndex()
getIndex in interface objects.ConfigurableObjectpublic void validate(int index)
validate in interface objects.ConfigurableObjectpublic long getTimestamp()
TimestampedObjectgetTimestamp in interface TimestampedObjectpublic void resetTimestamp()
TimestampedObjectresetTimestamp in interface TimestampedObjectpublic void update()
UpdatableObjectupdate in interface UpdatableObjectpublic int sizeof(java.lang.Object o)
sizeof in interface com.gemstone.gemfire.cache.util.ObjectSizerpublic void toData(java.io.DataOutput out)
throws java.io.IOException
toData in interface com.gemstone.gemfire.DataSerializablejava.io.IOExceptionpublic void fromData(java.io.DataInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
fromData in interface com.gemstone.gemfire.DataSerializablejava.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.