public interface ServiceExporter
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ServiceExporter.Builder |
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.CompletableFuture<java.util.Map.Entry<io.teris.kite.Context,byte[]>> |
call(java.lang.String route,
io.teris.kite.Context context,
byte[] data)
The call method is called by the RPC invocation layer supplying route, context and
data received from the client.
|
java.util.Set<java.lang.String> |
routes()
Lists all the routes registered for dispatching (flattening out every method of every
service)
|
static ServiceExporter.Builder |
serializer(io.teris.kite.Serializer serializer)
Creates a new builder for the ServiceDispatcher.
|
@Nonnull
java.util.concurrent.CompletableFuture<java.util.Map.Entry<io.teris.kite.Context,byte[]>> call(@Nonnull
java.lang.String route,
@Nonnull
io.teris.kite.Context context,
@Nullable
byte[] data)
@Nonnull java.util.Set<java.lang.String> routes()
@Nonnull static ServiceExporter.Builder serializer(@Nonnull io.teris.kite.Serializer serializer)