-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6487 from Skanetrafiken/siri-azure-refactor
Siri azure updater refactor
- Loading branch information
Showing
9 changed files
with
242 additions
and
281 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
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
19 changes: 19 additions & 0 deletions
19
...tion/src/ext/java/org/opentripplanner/ext/siri/updater/azure/SiriAzureMessageHandler.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,19 @@ | ||
package org.opentripplanner.ext.siri.updater.azure; | ||
|
||
import com.azure.messaging.servicebus.ServiceBusReceivedMessageContext; | ||
import java.util.concurrent.Future; | ||
import javax.annotation.Nullable; | ||
import org.opentripplanner.updater.spi.WriteToGraphCallback; | ||
import uk.org.siri.siri20.ServiceDelivery; | ||
|
||
public interface SiriAzureMessageHandler { | ||
void setup(WriteToGraphCallback writeToGraphCallback); | ||
|
||
/** | ||
* Consume ServiceDelivery and update the otp data model within the graph writer thread. | ||
* | ||
* @return A future for the graph updating process. Null if the message can't be handled. | ||
*/ | ||
@Nullable | ||
Future<?> handleMessage(ServiceDelivery serviceDelivery, String messageId); | ||
} |
Oops, something went wrong.