public TopicDescription createTopic(String topicPath) throws ServiceBusException, InterruptedException {
        return Utils.completeFuture(this.asyncClient.createTopicAsync(topicPath));
    }
public TopicDescription createTopic ( String topicPath ) throws ServiceBusException , InterruptedException { return Utils . completeFuture ( this . asyncClient . createTopicAsync ( topicPath ) ) ; }
Creates a new topic in the service namespace with the given name.
See {@link TopicDescription} for default values of topic properties.
@param topicPath - The name of the topic relative to the service namespace base address.
@return {@link TopicDescription} of the newly created topic.
@throws IllegalArgumentException - Entity name is null, empty, too long or uses illegal characters.
@throws MessagingEntityAlreadyExistsException - An entity with the same name exists under the same service namespace.
@throws TimeoutException - The operation times out. The timeout period is initiated through ClientSettings.operationTimeout
@throws AuthorizationFailedException - No sufficient permission to perform this operation. Please check ClientSettings.tokenProvider has correct details.
@throws ServerBusyException - The server is busy. You should wait before you retry the operation.
@throws ServiceBusException - An internal error or an unexpected exception occurred.
@throws QuotaExceededException - Either the specified size in the description is not supported or the maximum allowed quota has been reached.
@throws InterruptedException if the current thread was interrupted