public class PublisherHandler extends Object
Constructor and Description |
---|
PublisherHandler() |
Modifier and Type | Method and Description |
---|---|
void |
closePublisher(String requestId)
Closes the publisher that maps to the given request id
|
CompletableFuture<PublisherResponse> |
getNext(String requestId)
Retrieves the next response for the same request id that was configured on the command when invoking
register(InitialPublisherCommand) . |
int |
openPublishers()
Returns how many publishers are currently open
|
<I,R> CompletableFuture<PublisherResponse> |
register(InitialPublisherCommand<?,I,R> command)
Registers a publisher given the initial command arguments.
|
void |
start() |
void |
stop() |
void |
viewChange(ViewChangedEvent event) |
public void viewChange(ViewChangedEvent event)
public void start()
public void stop()
public <I,R> CompletableFuture<PublisherResponse> register(InitialPublisherCommand<?,I,R> command)
I
- input typeR
- output typecommand
- the command with arguments to start a publisher withpublic CompletableFuture<PublisherResponse> getNext(String requestId)
register(InitialPublisherCommand)
.requestId
- the unique request id to continue the response withpublic int openPublishers()
public void closePublisher(String requestId)
requestId
- unique identifier for the requestCopyright © 2021 JBoss by Red Hat. All rights reserved.