use of org.apache.nifi.controller.queue.FlowFileQueue in project nifi by apache.
the class StandardConnectionDAO method createFlowFileDropRequest.
@Override
public DropFlowFileStatus createFlowFileDropRequest(String id, String dropRequestId) {
final Connection connection = locateConnection(id);
final FlowFileQueue queue = connection.getFlowFileQueue();
final NiFiUser user = NiFiUserUtils.getNiFiUser();
if (user == null) {
throw new WebApplicationException(new Throwable("Unable to access details for current user."));
}
return queue.dropFlowFiles(dropRequestId, user.getIdentity());
}
Aggregations