public CmdlineRemoteProto.Message.ControllerMessage.FSEvent createNextEvent() { final CmdlineRemoteProto.Message.ControllerMessage.FSEvent.Builder builder = CmdlineRemoteProto.Message.ControllerMessage.FSEvent.newBuilder(); builder.setOrdinal(++myNextEventOrdinal); builder.addAllChangedPaths(myChanged); myChanged.clear(); builder.addAllDeletedPaths(myDeleted); myDeleted.clear(); return builder.build(); }
public void dropChanges() { myNeedRescan = true; myNextEventOrdinal = 0L; myChanged.clear(); myDeleted.clear(); }