ConsoleRequestGateway

@Component
class ConsoleRequestGateway @Autowired constructor(val eventPublisher: EventPublisher) : RequestGatewayController<ConsoleCommandRequest, ConsoleCommandResponse>

Constructors

Link copied to clipboard
@Autowired
constructor(eventPublisher: EventPublisher)

Properties

Link copied to clipboard
open override val eventPublisher: EventPublisher

Functions

Link copied to clipboard
open override fun execute(binding: EventBinding, request: ConsoleCommandRequest): ConsoleCommandResponse
open override fun execute(binding: EventBinding, request: ConsoleCommandRequest, timeout: Duration): ConsoleCommandResponse
open override fun execute(binding: EventBinding, request: ConsoleCommandRequest, timeout: Duration, authorizationHeader: String?): ConsoleCommandResponse
Link copied to clipboard
Link copied to clipboard
fun getFutureResponse(): CompletableFuture<ConsoleCommandResponse>
Link copied to clipboard
fun getInitialHeaders(correlationId: String, authorizationHeader: String?): Map<String, Any>
Link copied to clipboard
fun handleResponse(message: Message<ConsoleCommandResponse>)
Link copied to clipboard
fun setPendingResponse(correlationId: String, future: CompletableFuture<ConsoleCommandResponse>)
Link copied to clipboard
fun tryExecuteAndWait(future: CompletableFuture<ConsoleCommandResponse>, correlationId: String, timeout: Duration): ConsoleCommandResponse