Returns a description a block of work, or "exit" if no more blocks exist

@param name the assigned name of the consumer requesting a block of work
@return a description a block of work, or "exit" if no more blocks exist
338636
public synchronized String requestBlock(String name) {
        if (blocks.isEmpty()) {
            return "exit";
        }

        remainingBlocks.decrementAndGet();
        return blocks.poll().createResponse();
    }
376890
public Frame frame(String name)
    {
        if (frameMap==null)
            return null;
        return (Frame) frameMap.get(name);
    }
230183
public static CategoryMethodList getCategoryMethods(String name) {
        final ThreadCategoryInfo categoryInfo = THREAD_INFO.getInfoNullable();
        return categoryInfo == null ? null : categoryInfo.getCategoryMethods(name);
    }
903925
public String getHeader(String name) {
        Vector<String> v = getHeaders(name);
        if (v == null) {
            return null;
        }

        return v.firstElement();
    }
1128454
@Override
	public Service getService(String name) {
		Service service = null;
		long stamp = lock.tryOptimisticRead();
		if (stamp != 0) {
			try {
				service = services.get(name);
			} catch (Exception modified) {
				stamp = 0;
			}
		}
		if (!lock.validate(stamp) || stamp == 0) {
			stamp = lock.readLock();
			try {
				service = services.get(name);
			} finally {
				lock.unlockRead(stamp);
			}
		}
		if (service == null) {
			throw new ServiceNotFoundError(nodeID, name);
		}
		return service;
	}
680215
public WorkflowDef getWorkflowDef(String name, @Nullable Integer version) {
        Preconditions.checkArgument(StringUtils.isNotBlank(name), "name cannot be blank");

        MetadataServicePb.GetWorkflowRequest.Builder request =
                MetadataServicePb.GetWorkflowRequest.newBuilder()
                        .setName(name);

        if (version != null)
            request.setVersion(version);

        return protoMapper.fromProto(stub.getWorkflow(request.build()).getWorkflow());
    }
516948
public List<String> getHeaders(String name) {
		Map<String, List<String>> fields = conn.getHeaderFields();
		if (fields == null) {
			return null;
		}
		return fields.get(name);
	}
186745
public static String getTransferQueue(String name) {
        LOG.debug("对于需要保序的情况，只应该启动单个中转节点，目前启动多个节点原节点会被挤掉线,但是由于重连机制，会轮着挤掉线");
        return IdManager.generateStaticQueueId(buildTransferName(name));
    }
1035169
public Label getLabel(String name) {
        if (name==null) return null;
        Label l = (Label) superBlockNamedLabels.get(name);
        if (l==null) l = createLocalLabel(name);
        return l;
    }
242458
public CircuitBreakerBean findCircuitBreakerBean(String name) {
        CircuitBreaker circuitBreaker = findCircuitBreaker(name);

        if (circuitBreaker instanceof CircuitBreakerBean) {
            return (CircuitBreakerBean) circuitBreaker;
        }
        return null;
    }
839770
private function getParameterDocDescription(string $name): ?string
  {
    if (isset($this->docBlockPartsSource['parameters']))
    {
      foreach ($this->docBlockPartsSource['parameters'] as $parameter_doc_info)
      {
        if ($parameter_doc_info['name']===$name) return $parameter_doc_info['description'];
      }
    }

    return null;
  }
809516
def enter_block(self, name):
        """"""
        section = self._get_section(name)
        block = self.current_block = section.new_block()
        self.blocks.append(block)
        return block
324801
public V get(String name) {
        V rc = null;
        K key = getKey(name);
        if (null != key) {
            rc = get(key);
        }
        return rc;
    }
935641
public static Aggregator get(final String name) {
    final Aggregator agg = aggregators.get(name);
    if (agg != null) {
      return agg;
    }
    throw new NoSuchElementException("No such aggregator: " + name);
  }
812892
@SuppressWarnings("unchecked")
    public Permission getPermission(final String name) {
        final Query query = pm.newQuery(Permission.class, "name == :name");
        final List<Permission> result = (List<Permission>) query.execute(name);
        return Collections.isEmpty(result) ? null : result.get(0);
    }
585189
public static ExecutorService getSingleThreadExecutor(String name) {
        ExecutorService ste =
                new ThreadPoolExecutor(1, 1,
                        0L, TimeUnit.MILLISECONDS,
                        new LinkedBlockingQueue<Runnable>(),
                        CoreUtils.getThreadFactory(null, name, SMALL_STACK_SIZE, false, null));
        return ste;
    }
1034277
public static SerializationFormat getOutputFormat(String name) {
        for (SerializationFormat ft : Instance.serializationFormats) {
            if (ft.isAcceptedAsOutput(name)) {
                return ft;
            }
        }
        return null;
    }