-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor clientfactory customizer (#27653)
* refactor the ClientFactoryCustomizer into two separate factory customizers
- Loading branch information
Showing
13 changed files
with
335 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 0 additions & 28 deletions
28
...n/java/com/azure/spring/cloud/stream/binder/eventhubs/config/ClientFactoryCustomizer.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
...zure/spring/cloud/stream/binder/eventhubs/config/EventHubsProcessorFactoryCustomizer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
package com.azure.spring.cloud.stream.binder.eventhubs.config; | ||
|
||
|
||
import com.azure.spring.messaging.eventhubs.core.EventHubsProcessorFactory; | ||
|
||
/** | ||
* Called by the binder to customize the {@link EventHubsProcessorFactory}. | ||
*/ | ||
@FunctionalInterface | ||
public interface EventHubsProcessorFactoryCustomizer { | ||
|
||
/** | ||
* Customize the processor factory. | ||
* | ||
* @param factory The processor factory. | ||
*/ | ||
void customize(EventHubsProcessorFactory factory); | ||
|
||
} |
22 changes: 22 additions & 0 deletions
22
...azure/spring/cloud/stream/binder/eventhubs/config/EventHubsProducerFactoryCustomizer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
package com.azure.spring.cloud.stream.binder.eventhubs.config; | ||
|
||
|
||
import com.azure.spring.messaging.eventhubs.core.EventHubsProducerFactory; | ||
|
||
/** | ||
* Called by the binder to customize the {@link EventHubsProducerFactory}. | ||
*/ | ||
@FunctionalInterface | ||
public interface EventHubsProducerFactoryCustomizer { | ||
|
||
/** | ||
* Customize the producer factory. | ||
* | ||
* @param factory The producer factory. | ||
*/ | ||
void customize(EventHubsProducerFactory factory); | ||
|
||
} |
Oops, something went wrong.