Interface TopicManager

All Superinterfaces:
Object

public interface TopicManager extends Object
Represents an object that manages topics.
See Also:
  • Method Details

    • create

      TopicPrx create(String name, Current current) throws TopicExists
      Creates a new topic.
      Parameters:
      name - The name of the topic.
      current - The Current object of the incoming request.
      Returns:
      A proxy to the new topic object. The returned proxy is never null.
      Throws:
      TopicExists - Thrown when a topic with the same name already exists.
    • retrieve

      TopicPrx retrieve(String name, Current current) throws NoSuchTopic
      Retrieves a topic by name.
      Parameters:
      name - The name of the topic.
      current - The Current object of the incoming request.
      Returns:
      A proxy to the topic object. The returned proxy is never null.
      Throws:
      NoSuchTopic - Thrown when there is no topic named name.
    • retrieveAll

      Map<String,TopicPrx> retrieveAll(Current current)
      Retrieves all topics managed by this topic manager.
      Parameters:
      current - The Current object of the incoming request.
      Returns:
      A dictionary of string, topic proxy pairs.
    • ice_staticId

      static String ice_staticId()
      Gets the type ID of the associated Slice interface.
      Returns:
      the string "::IceStorm::TopicManager"
    • dispatch

      default CompletionStage<OutgoingResponse> dispatch(IncomingRequest request) throws UserException
      Dispatches an incoming request to one of the methods of this generated interface, based on the operation name carried by the request.
      Specified by:
      dispatch in interface Object
      Parameters:
      request - the incoming request
      Returns:
      the outgoing response
      Throws:
      UserException - if a UserException is thrown, Ice will marshal it as the response payload.