S - The service type: the intended effective type of the concrete service implementation.public class ProtoService<S extends ProtoService<S>> extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
ProtoService.Channel<S,M>
Identifies service specific channels in the context
of a
ProtoService implementation. |
| Modifier | Constructor and Description |
|---|---|
protected |
ProtoService(Audience audience,
Class<S> serviceClass)
Initializes a new instance and checks the intended service type for consistency.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
fire(ProtoService.Channel<S,?>... channels)
Triggers messages on the given, service-specific channels.
|
Registry |
registry()
|
protected ProtoService(Audience audience, Class<S> serviceClass)
audience - A preconfigured Audience to handle notifications and targets.serviceClass - The Class representation of the intended effective service type.IllegalArgumentException - if the specified service class does not represent the instance to create.public final Registry registry()
@SafeVarargs protected final void fire(ProtoService.Channel<S,?>... channels)
Copyright © 2025 Andreas Kluge-Kaindl, Bremen (de). All rights reserved.