use of org.mycore.common.processing.MCRProcessable in project mycore by MyCoRe-Org.
the class MCRProcessableWebsocketSenderImpl method remove.
public synchronized Integer remove(Object object) {
Integer id = ID_MAP.get(object);
if (id == null) {
return null;
}
ID_MAP.remove(id);
if (object instanceof MCRProcessable) {
PROCESSABLE_COLLECTION_MAP.remove(id);
} else if (object instanceof MCRProcessableCollection) {
PROCESSABLE_COLLECTION_MAP.values().removeIf(id::equals);
}
return id;
}
Aggregations