public final class ChecksumValidatingPublisher extends Object implements SdkPublisher<ByteBuffer>
Constructor and Description |
---|
ChecksumValidatingPublisher(<any> publisher,
SdkChecksum sdkChecksum,
String expectedChecksum) |
Modifier and Type | Method and Description |
---|---|
void |
subscribe(<any> s)
Subscribes to the publisher with the given
Consumer . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
adapt, buffer, doAfterOnCancel, doAfterOnComplete, doAfterOnError, filter, filter, flatMapIterable, limit, map
public ChecksumValidatingPublisher(<any> publisher, SdkChecksum sdkChecksum, String expectedChecksum)
public void subscribe(<any> s)
SdkPublisher
Consumer
. This consumer will be called for each event
published. There is no backpressure using this method if the Consumer dispatches processing asynchronously. If more
control over backpressure is required, consider using #subscribe(Subscriber)
.subscribe
in interface SdkPublisher<ByteBuffer>
s
- Consumer to process event.Copyright © 2022. All rights reserved.