Class OperationRoutingServerConnectionHandler
java.lang.Object
software.amazon.awssdk.crt.eventstream.ServerConnectionHandler
software.amazon.awssdk.crt.eventstream.OperationRoutingServerConnectionHandler
- All Implemented Interfaces:
AutoCloseable
ServerConnectionHandler implementation that routes continuations to specific
operation specific message handlers
-
Constructor Summary
ConstructorsConstructorDescriptionOperationRoutingServerConnectionHandler(ServerConnection serverConnection, Map<String, Function<ServerConnectionContinuation, ServerConnectionContinuationHandler>> operationMapping) binds an operation handler mapping to a server connection -
Method Summary
Methods inherited from class software.amazon.awssdk.crt.eventstream.ServerConnectionHandler
close
-
Constructor Details
-
OperationRoutingServerConnectionHandler
public OperationRoutingServerConnectionHandler(ServerConnection serverConnection, Map<String, Function<ServerConnectionContinuation, ServerConnectionContinuationHandler>> operationMapping) binds an operation handler mapping to a server connection- Parameters:
serverConnection- connection to route messages foroperationMapping- mapping of operation names to message handlers.
-