Class PubSubProducerCallbackSimpleImpl
- java.lang.Object
-
- com.linkedin.venice.pubsub.adapter.PubSubProducerCallbackSimpleImpl
-
- All Implemented Interfaces:
PubSubProducerCallback
public class PubSubProducerCallbackSimpleImpl extends java.lang.Object implements PubSubProducerCallback
A simple implementation of PubSubProducerCallback interface for testing purposes.
-
-
Constructor Summary
Constructors Constructor Description PubSubProducerCallbackSimpleImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Exception
getException()
PubSubProduceResult
getProduceResult()
boolean
isInvoked()
void
onCompletion(PubSubProduceResult produceResult, java.lang.Exception exception)
exception will be null if request was completed without an error.
-
-
-
Method Detail
-
onCompletion
public void onCompletion(PubSubProduceResult produceResult, java.lang.Exception exception)
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
public PubSubProduceResult getProduceResult()
-
getException
public java.lang.Exception getException()
-
-