Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
System
Lib
cloud
azure
OS Core Lib Azure
Commits
d29a5788
Commit
d29a5788
authored
Mar 03, 2021
by
Komal Makkar
Browse files
changed sneaky throws
parent
c6de6de1
Pipeline
#29694
failed with stage
in 1 minute and 16 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/opengroup/osdu/azure/eventgrid/EventGridTopicClientFactoryImpl.java
View file @
d29a5788
...
...
@@ -17,12 +17,11 @@ package org.opengroup.osdu.azure.eventgrid;
import
com.microsoft.azure.eventgrid.EventGridClient
;
import
com.microsoft.azure.eventgrid.TopicCredentials
;
import
com.microsoft.azure.eventgrid.implementation.EventGridClientImpl
;
import
lombok.SneakyThrows
;
import
org.opengroup.osdu.azure.cache.EventGridTopicClientCache
;
import
org.opengroup.osdu.azure.cosmosdb.CosmosStoreBulkOperations
;
import
org.opengroup.osdu.azure.partition.EventGridTopicPartitionInfoAzure
;
import
org.opengroup.osdu.azure.partition.PartitionServiceEventGridClient
;
import
org.opengroup.osdu.common.Validators
;
import
org.opengroup.osdu.core.common.partition.PartitionException
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -42,13 +41,14 @@ public class EventGridTopicClientFactoryImpl implements IEventGridTopicClientFac
private
EventGridTopicClientCache
clientCache
;
/**
*
* @param dataPartitionId Data partition id
* @param topicName Topic
N
ame
* @param topicName Topic
n
ame
* @return EventGridClient
* @throws PartitionException partitionException
*/
@SneakyThrows
@Override
public
EventGridClient
getClient
(
final
String
dataPartitionId
,
final
String
topicName
)
{
public
EventGridClient
getClient
(
final
String
dataPartitionId
,
final
String
topicName
)
throws
PartitionException
{
Validators
.
checkNotNullAndNotEmpty
(
dataPartitionId
,
"dataPartitionId"
);
Validators
.
checkNotNull
(
topicName
,
"topicName"
);
...
...
src/main/java/org/opengroup/osdu/azure/eventgrid/IEventGridTopicClientFactory.java
View file @
d29a5788
...
...
@@ -15,6 +15,7 @@
package
org.opengroup.osdu.azure.eventgrid
;
import
com.microsoft.azure.eventgrid.EventGridClient
;
import
org.opengroup.osdu.core.common.partition.PartitionException
;
/**
* Interface for Event Grid Topic client factory to return appropriate
...
...
@@ -23,9 +24,11 @@ import com.microsoft.azure.eventgrid.EventGridClient;
public
interface
IEventGridTopicClientFactory
{
/**
*
* @param dataPartitionId Data partition id
* @param topicName Topic name
* @return EventGridClient
* @throws PartitionException partitionException
*/
EventGridClient
getClient
(
String
dataPartitionId
,
String
topicName
);
EventGridClient
getClient
(
String
dataPartitionId
,
String
topicName
)
throws
PartitionException
;
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment