Class RecordsToDelete
java.lang.Object
org.apache.kafka.clients.admin.RecordsToDelete
Describe records to delete in a call to
Admin.deleteRecords(Map)-
Method Summary
Modifier and TypeMethodDescriptionlongThe offset before which all records will be deleted.static RecordsToDeletebeforeOffset(long offset) Delete all the records before the givenoffsetbooleaninthashCode()toString()
-
Method Details
-
beforeOffset
Delete all the records before the givenoffset- Parameters:
offset- The offset before which all records will be deleted. Use-1to truncate to the high watermark.
-
beforeOffset
public long beforeOffset()The offset before which all records will be deleted. Use-1to truncate to the high watermark. -
equals
-
hashCode
-
toString
-