public S withValueType(final ValueType valueType) { return metadataFilter(m -> m.getValueType() == valueType); } }
public S withPartitionId(final int partitionId) { return metadataFilter(m -> m.getPartitionId() == partitionId); }
public S withRecordType(final RecordType recordType) { return metadataFilter(m -> m.getRecordType() == recordType); }
public S onlyCommandRejections() { return metadataFilter(m -> m.getRecordType() == RecordType.COMMAND_REJECTION); }
public S onlyEvents() { return metadataFilter(m -> m.getRecordType() == RecordType.EVENT); }
public S withValueType(final ValueType valueType) { return metadataFilter(m -> m.getValueType() == valueType); } }
public S withRejectionType(final RejectionType rejectionType) { return metadataFilter(m -> m.getRejectionType() == rejectionType); }
public S onlyCommands() { return metadataFilter(m -> m.getRecordType() == RecordType.COMMAND); }
public S onlyCommands() { return metadataFilter(m -> m.getRecordType() == RecordType.COMMAND); }
public S onlyCommandRejections() { return metadataFilter(m -> m.getRecordType() == RecordType.COMMAND_REJECTION); }
public S onlyEvents() { return metadataFilter(m -> m.getRecordType() == RecordType.EVENT); }
public S withIntent(final Intent intent) { return metadataFilter(m -> m.getIntent() == intent); }
public S withIntent(final Intent intent) { return metadataFilter(m -> m.getIntent() == intent); }
public S withRejectionType(final RejectionType rejectionType) { return metadataFilter(m -> m.getRejectionType() == rejectionType); }
public S withRejectionReason(final String rejectionReason) { return metadataFilter(m -> rejectionReason.equals(m.getRejectionReason())); }
public S withPartitionId(final int partitionId) { return metadataFilter(m -> m.getPartitionId() == partitionId); }
public S withRecordType(final RecordType recordType) { return metadataFilter(m -> m.getRecordType() == recordType); }
public S withRejectionReason(final String rejectionReason) { return metadataFilter(m -> rejectionReason.equals(m.getRejectionReason())); }