Class NeovimStreamNotificationHandler

java.lang.Object
com.ensarsarajcic.neovim.java.notifications.NeovimStreamNotificationHandler
All Implemented Interfaces:
NeovimNotificationHandler

public final class NeovimStreamNotificationHandler extends Object implements NeovimNotificationHandler
Implementation of NeovimNotificationHandler based on ReactiveRpcStreamer

Utilizes NotificationCreatorCollector for generating actual objects from raw data and ReactiveRpcStreamer for reading incoming notifications. Output should provide properly generated notifications of the right type which can be casted to access notification specific data.

Example:

     
     NeovimNotificationHandler notificationHandler = new NeovimNotificationHandler(streamer);

     notification.uiEvents().subscribe(uiEventSubscriber);
     notification.bufferEvents().subscribe(bufferEventSubscriber);