com.h3c.sdn.ha

## Interface SyncObj<T>

- Type Parameters:
    `T` - the object that will be used for transmission.
  All Superinterfaces:
    Serializable
  All Known Implementing Classes:
    AbstractSyncObj, BroadcastTreeSyncObj, DpSuppressedPortsSyncObj, LinkSyncObj, MsgContextSyncObj, NodeMessageSyncObj, TopologyClusterSyncObj

      public interface SyncObj<T>
      extends Serializable

  Abstraction of an object used in distributed mediums (ZK bus,keystore).

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `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.

- - ### Method Detail

    - #### unmarshal

          SyncObj<T> unmarshal(byte[] payload)

      Synthesizes the object from the given bytes that were retrieved from the transmitted medium.
      Parameters:
        `payload` - the object in bytes form retrieved from the medium.
      Returns:
        the synthesized object

    - #### marshal

          byte[] marshal()

      Converts this object into byte format ready for transmission.
      Returns:
        the object in byte format ready for transmission over the medium.

Copyright © 2014. All Rights Reserved.