Class PubSubProducerCallbackSimpleImpl
java.lang.Object
com.linkedin.venice.pubsub.mock.adapter.PubSubProducerCallbackSimpleImpl
- All Implemented Interfaces:
PubSubProducerCallback
A simple implementation of PubSubProducerCallback interface for testing purposes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidonCompletion(PubSubProduceResult produceResult, Exception exception) exception will be null if request was completed without an error.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.linkedin.venice.pubsub.api.PubSubProducerCallback
setInternalCallback
-
Constructor Details
-
PubSubProducerCallbackSimpleImpl
public PubSubProducerCallbackSimpleImpl()
-
-
Method Details
-
onCompletion
Description copied from interface:PubSubProducerCallbackexception will be null if request was completed without an error.- Specified by:
onCompletionin interfacePubSubProducerCallback
-
isInvoked
public boolean isInvoked() -
getProduceResult
-
getException
-