Class RecordSendTest

java.lang.Object
org.apache.kafka.clients.producer.RecordSendTest

public class RecordSendTest extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.kafka.clients.producer.internals.ProduceRequestResult
    asyncRequest(long baseOffset, RuntimeException error, long timeout)
     
    void
    Test that an asynchronous request will eventually return the right offset
    void
    Test that an asynchronous request will eventually throw the right exception
    void
    Test that waiting on a request that never completes times out

    Methods inherited from class Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RecordSendTest

      public RecordSendTest()
  • Method Details

    • testTimeout

      @Test public void testTimeout() throws Exception
      Test that waiting on a request that never completes times out
      Throws:
      Exception
    • testError

      @Test public void testError()
      Test that an asynchronous request will eventually throw the right exception
    • testBlocking

      @Test public void testBlocking() throws Exception
      Test that an asynchronous request will eventually return the right offset
      Throws:
      Exception
    • asyncRequest

      public org.apache.kafka.clients.producer.internals.ProduceRequestResult asyncRequest(long baseOffset, RuntimeException error, long timeout)