Interface SinkProvider<T>
- Type Parameters:
T- event type
- All Known Implementing Classes:
SseSinkProvider
public interface SinkProvider<T>
ServiceLoader provider interface for Sink providers.-
Method Summary
Modifier and TypeMethodDescriptioncreate(SinkProviderContext context) Creates a sink using this provider.booleansupports(GenericType<? extends Sink<?>> type, ServerRequest request) Checks if a provider supports the type.
-
Method Details
-
supports
Checks if a provider supports the type.- Parameters:
type- the typerequest- the current request- Returns:
- outcome of test
-
create
Creates a sink using this provider.- Type Parameters:
X- type of sink- Parameters:
context- a context for a sync provider- Returns:
- newly created sink
-