Class OperationRoutingServerConnectionHandler
- java.lang.Object
-
- software.amazon.awssdk.crt.eventstream.ServerConnectionHandler
-
- software.amazon.awssdk.crt.eventstream.OperationRoutingServerConnectionHandler
-
- All Implemented Interfaces:
AutoCloseable
public class OperationRoutingServerConnectionHandler extends ServerConnectionHandler
ServerConnectionHandler implementation that routes continuations to specific operation specific message handlers
-
-
Constructor Summary
Constructors Constructor Description OperationRoutingServerConnectionHandler(ServerConnection serverConnection, Map<String,Function<ServerConnectionContinuation,ServerConnectionContinuationHandler>> operationMapping)
binds an operation handler mapping to a server connection
-
-
-
Constructor Detail
-
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.
-
-