- All Superinterfaces:
Object
Represents an object that manages topics.
Remarks:
The Slice compiler generated this skeleton interface from Slice interface ::IceStorm::TopicManager.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.zeroc.Ice.Object
Object.Ice_invokeResult -
Method Summary
Modifier and TypeMethodDescriptioncreateAsync(String name, Current current) Creates a new topic.createOrRetrieveAsync(String name, Current current) Creates a new topic with the given name, or retrieves the existing topic with this name if it already exists.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 StringGets the type ID of the associated Slice interface.retrieveAllAsync(Current current) Retrieves all topics managed by this topic manager.retrieveAsync(String name, Current current) Retrieves a topic by name.
-
Method Details
-
createAsync
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 samenamealready exists.
-
retrieveAsync
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.
-
createOrRetrieveAsync
Creates a new topic with the given name, or retrieves the existing topic with this name if it already exists.- 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.
-
retrieveAllAsync
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:
dispatchin interfaceObject- Parameters:
request- the incoming request- Returns:
- the outgoing response
- Throws:
UserException- if aUserExceptionis thrown, Ice will marshal it as the response payload.
-