use of org.graylog2.streams.events.StreamDeletedEvent in project graylog2-server by Graylog2.
the class StartPageCleanupListener method removeStartpageReferencesIfStreamDeleted.
@Subscribe
@SuppressWarnings("unused")
public void removeStartpageReferencesIfStreamDeleted(StreamDeletedEvent streamDeletedEvent) {
final Startpage deletedStartpage = Startpage.create("stream", streamDeletedEvent.streamId());
resetReferencesToStartpage(deletedStartpage);
}