Class ChecksumValidatingPublisher

  • All Implemented Interfaces:
    org.reactivestreams.Publisher<ByteBuffer>, SdkPublisher<ByteBuffer>

    public final class ChecksumValidatingPublisher
    extends Object
    implements SdkPublisher<ByteBuffer>
    Publisher to update the checksum as it reads the data and finally compares the computed checksum with expected Checksum.
    • Constructor Detail

      • ChecksumValidatingPublisher

        public ChecksumValidatingPublisher​(org.reactivestreams.Publisher<ByteBuffer> publisher,
                                           SdkChecksum sdkChecksum,
                                           String expectedChecksum)
    • Method Detail

      • subscribe

        public void subscribe​(org.reactivestreams.Subscriber<? super ByteBuffer> s)
        Specified by:
        subscribe in interface org.reactivestreams.Publisher<ByteBuffer>