Interface DSPacket

All Superinterfaces:
DSSerializable
All Known Subinterfaces:
DSContainer, DSData, DSNews, DSNoData, DSPage, DSPermission, DSRecord, DSStatus, DSStory

public interface DSPacket extends DSSerializable

The base interface for any DataSource packet that can be sent to peers.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Send this DSPacket.
    void
    Send this DSPacket directly - bypassing any configured sending mechanism that may be in place.
    void
    sendToPeer(int peer)
    Sends this DSPacket object to the specified peer.

    Methods inherited from interface com.caplin.datasource.interfaces.DSSerializable

    toBytes
  • Method Details

    • sendToPeer

      void sendToPeer(int peer)
      Sends this DSPacket object to the specified peer.
      Parameters:
      peer - the DataSource peer.
    • sendDirect

      void sendDirect()
      Send this DSPacket directly - bypassing any configured sending mechanism that may be in place.
    • send

      void send()
      Send this DSPacket.

      Previous to version 3.4.0 of DSDK for Java this method returned a DSSet type.
      Since 3.4.0 there is no return value. This brings the product into line with the C DSDK.

      Since:
      3.4.0