Interface ObservableRemotePluginSpi
-
- All Superinterfaces:
AbstractRemotePluginSpi,RemotePluginSpi
public interface ObservableRemotePluginSpi extends RemotePluginSpi
Distributed observable remote plugin extension able to communicate with a distributed local service extension.- Since:
- 2.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidconnect(ObservableRemotePluginApi observableRemotePluginApi)Connects the associated Keyple CoreObservableRemotePluginApiAPI.java.util.concurrent.ExecutorServicegetExecutorService()Returns the custom service to be used to asynchronously notify remote reader connection events.voidonStartObservation()Invoked when the associated distributed local service starts the observation of all observable local plugins.voidonStopObservation()Invoked when the associated distributed local service stops the observation of all observable local plugins.-
Methods inherited from interface org.eclipse.keyple.core.distributed.remote.spi.AbstractRemotePluginSpi
executeRemotely, getName, onUnregister
-
Methods inherited from interface org.eclipse.keyple.core.distributed.remote.spi.RemotePluginSpi
connect, createObservableRemoteReader, createRemoteReader
-
-
-
-
Method Detail
-
connect
void connect(ObservableRemotePluginApi observableRemotePluginApi)
Connects the associated Keyple CoreObservableRemotePluginApiAPI.- Parameters:
observableRemotePluginApi- The API to connect.- Since:
- 2.0.0
-
getExecutorService
java.util.concurrent.ExecutorService getExecutorService()
Returns the custom service to be used to asynchronously notify remote reader connection events.- Returns:
- Null if there is no custom executor service provided.
- Since:
- 2.1.0
-
onStartObservation
void onStartObservation()
Invoked when the associated distributed local service starts the observation of all observable local plugins.- Since:
- 2.0.0
-
onStopObservation
void onStopObservation()
Invoked when the associated distributed local service stops the observation of all observable local plugins.- Since:
- 2.0.0
-
-