public TopicDefinition createTopicDefinition ( String topicName , boolean temporary ) { TopicDefinition def = new TopicDefinition ( ) ; def . setName ( topicName ) ; def . setTemporary ( temporary ) ; copyAttributesTo ( def ) ; def . setSubscriberFailurePolicy ( subscriberFailurePolicy ) ; def . setSubscriberOverflowPolicy ( subscriberOverflowPolicy ) ; def . setPartitionsKeysToIndex ( partitionsKeysToIndex ) ; return def ; }
Create a topic definition from this template