- All Superinterfaces:
Object
Represents an object that manages topics.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.zeroc.Ice.Object
Object.Ice_invokeResult
-
Method Summary
Modifier and TypeMethodDescriptionCreates a new topic.default CompletionStage<OutgoingResponse>
dispatch
(IncomingRequest request) Dispatches an incoming request to one of the methods of this generated interface, based on the operation name carried by the request.static String
Gets the type ID of the associated Slice interface.Retrieves a topic by name.retrieveAll
(Current current) Retrieves all topics managed by this topic manager.
-
Method Details
-
create
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 samename
already exists.
-
retrieve
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 namedname
.
-
retrieveAll
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
Gets the type ID of the associated Slice interface.- Returns:
- the string "::IceStorm::TopicManager"
-
dispatch
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 interfaceObject
- Parameters:
request
- the incoming request- Returns:
- the outgoing response
- Throws:
UserException
- if aUserException
is thrown, Ice will marshal it as the response payload.
-