@Override public void updateTopic(TopicMetadata topicMetadata) throws TopicNotFoundException, IOException { getMessagingService().updateTopic(topicMetadata); }
@Override public void updateTopic(TopicMetadata topicMetadata) throws TopicNotFoundException, IOException { getMessagingService().updateTopic(topicMetadata); }
@Override public void updateTopic(String topic, Map<String, String> properties) throws TopicNotFoundException, IOException { messagingService.updateTopic(new TopicMetadata(namespace.topic(topic), properties)); }
@Override public void updateTopic(String topic, Map<String, String> properties) throws TopicNotFoundException, IOException { messagingService.updateTopic(new TopicMetadata(namespace.topic(topic), properties)); }
@PUT @Path("/topics/{topic}/properties") public void updateTopic(FullHttpRequest request, HttpResponder responder, @PathParam("namespace") String namespace, @PathParam("topic") String topic) throws Exception { TopicId topicId = new NamespaceId(namespace).topic(topic); messagingService.updateTopic(new TopicMetadata(topicId, decodeTopicProperties(request.content()))); responder.sendStatus(HttpResponseStatus.OK); }
@PUT @Path("/topics/{topic}/properties") public void updateTopic(FullHttpRequest request, HttpResponder responder, @PathParam("namespace") String namespace, @PathParam("topic") String topic) throws Exception { TopicId topicId = new NamespaceId(namespace).topic(topic); messagingService.updateTopic(new TopicMetadata(topicId, decodeTopicProperties(request.content()))); responder.sendStatus(HttpResponseStatus.OK); }
client.updateTopic(new TopicMetadata(topic1, "ttl", "5")); client.updateTopic(new TopicMetadata(topic1)); Assert.fail("Expect TopicNotFoundException"); } catch (TopicNotFoundException e) {