Class SimpleTransportable

java.lang.Object
org.apache.vinci.transport.SimpleTransportable
All Implemented Interfaces:
Transportable

public final class SimpleTransportable extends Object implements Transportable
SimpleTransportable is an immutable Transportable object that simply writes a byte buffer for its toStream implementation. It can be used for creating lightweight copies of more heavy-weight documents for high performance and simplified synchronization. Because it is immutable, the fromStream() method of this class throws an unchecked exception if invoked.
  • Field Details

    • document

      private final byte[] document
  • Constructor Details

    • SimpleTransportable

      public SimpleTransportable(Transportable convert_me)
      Create a SimpleTransportable that is an immutable copy of the provided Transportable object.
      Parameters:
      convert_me - -
  • Method Details