Skip to content

Commit

Permalink
Deprecate AsynDisruptorAppender#setProducerType()
Browse files Browse the repository at this point in the history
closes #608
  • Loading branch information
brenuart committed Aug 24, 2021
1 parent 432a427 commit 1c403cc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ e.g.<br/><tt>phasedBackoff{10,60,seconds,blocking}</tt></td>
</table>

See [AsyncDisruptorAppender](/src/main/java/net/logstash/logback/appender/AsyncDisruptorAppender.java)
for other configuration parameters (such as `ringBufferSize`, `producerType`, `threadNamePrefix`, `daemon`, and `droppedWarnFrequency`)
for other configuration parameters (such as `ringBufferSize`, `threadNamePrefix`, `daemon`, and `droppedWarnFrequency`)


### Appender Listeners
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -644,8 +644,17 @@ public void setRingBufferSize(int ringBufferSize) {
public ProducerType getProducerType() {
return producerType;
}

/**
* Set the {@link ProducerType} to use to configure the disruptor.
*
* @deprecated ProducerType will be fixed to MULTI in future release and this method removed without any replacement.
* @param producerType the type of producer
*/
@Deprecated
public void setProducerType(ProducerType producerType) {
this.producerType = producerType;
this.producerType = Objects.requireNonNull(producerType);
addWarn("setProducerType() is deprecated and will be removed without replacement in future release");
}

public WaitStrategy getWaitStrategy() {
Expand Down

0 comments on commit 1c403cc

Please sign in to comment.