T - the type of sync objectpublic abstract class AbstractSyncObj<T> extends Object implements SyncObj<T>
| Constructor and Description |
|---|
AbstractSyncObj() |
| Modifier and Type | Method and Description |
|---|---|
abstract SyncObj<T> |
decode(com.fasterxml.jackson.databind.node.ObjectNode jsonNode)
Convert a given raw ObjectNode to required SyncObject.
|
abstract com.fasterxml.jackson.databind.node.ObjectNode |
encode(com.fasterxml.jackson.databind.node.ObjectNode rawNode)
Stuffs an empty ObjectNode with desired form of the SyncObj.
|
static boolean |
isNull(Object obj)
Checks if given object is null.
|
static com.fasterxml.jackson.databind.ObjectMapper |
mapper() |
byte[] |
marshal()
Converts this object into byte format ready for transmission.
|
SyncObj<T> |
unmarshal(byte[] payload)
Synthesizes the object from the given bytes that were retrieved from the
transmitted medium.
|
public static com.fasterxml.jackson.databind.ObjectMapper mapper()
public abstract SyncObj<T> decode(com.fasterxml.jackson.databind.node.ObjectNode jsonNode)
jsonNode - the raw ObjectNode synthesized from the bytes retrieved
from the HA infrastructure.public SyncObj<T> unmarshal(byte[] payload)
public abstract com.fasterxml.jackson.databind.node.ObjectNode encode(com.fasterxml.jackson.databind.node.ObjectNode rawNode)
rawNode - the empty ObjectNode that needs to be built on.public byte[] marshal()
public static boolean isNull(Object obj)
obj - object that needs to be checkedCopyright © 2014. All Rights Reserved.