public interface ObservableReaderEventFilter
You must provide an implementation of this interface if you use a LocalServiceClient
and you plan to observe remotely the local reader.
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropagation(java.lang.Object userOutputData)
Is invoked at the end of the processing of the remote service to deliver the result.
|
java.lang.Object |
beforePropagation(org.eclipse.keyple.core.service.event.ReaderEvent event)
Is invoked when a reader event occurs, before propagating it to the server.
|
java.lang.Class<? extends java.lang.Object> |
getUserOutputDataClass()
Must return the class of the user output data expected at the output of the remote service.
|
java.lang.Object beforePropagation(org.eclipse.keyple.core.service.event.ReaderEvent event)
Then, you have the possibility to :
DoNotPropagateEventException.
event - The reader event.DoNotPropagateEventException - if you want to stop the propagation of the event.java.lang.Class<? extends java.lang.Object> getUserOutputDataClass()
Is invoked in order to deserialize the user output data before to invoke the method afterPropagation(Object).
void afterPropagation(java.lang.Object userOutputData)
userOutputData - The user output data previously deserialized using the method getUserOutputDataClass(), or null if there is no data.