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 TypeMethodDescriptionboolean
void
onCompletion
(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, wait
Methods inherited from interface com.linkedin.venice.pubsub.api.PubSubProducerCallback
setInternalCallback
-
Constructor Details
-
PubSubProducerCallbackSimpleImpl
public PubSubProducerCallbackSimpleImpl()
-
-
Method Details
-
onCompletion
Description copied from interface:PubSubProducerCallback
exception will be null if request was completed without an error.- Specified by:
onCompletion
in interfacePubSubProducerCallback
-
isInvoked
public boolean isInvoked() -
getProduceResult
-
getException
-