public class SyncUtil extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
SyncUtil() |
| Modifier and Type | Method and Description |
|---|---|
void |
buildRegistry()
Initializes the registry.
|
static SyncUtil |
instance()
The only way to obtain handle to this utility.
|
static byte[] |
marshal(SyncObj<?> so)
Marshals a given HA object into its byte form for transmission.
|
static SyncObj<?> |
unmarshal(Class<?> syncClass,
byte[] payload) |
public static SyncUtil instance()
public static SyncObj<?> unmarshal(Class<?> syncClass, byte[] payload)
syncClass - the class to unmarshalpayload - the bytes to unmarshalpublic static byte[] marshal(SyncObj<?> so)
so - the Sync object being marshalledpublic void buildRegistry()
Copyright © 2014. All Rights Reserved.