public class WorkerRequestReservedMap extends Object
Constructor and Description |
---|
WorkerRequestReservedMap(org.apache.hadoop.conf.Configuration conf)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
reserveRequest(Integer workerId,
long requestId)
Reserve the request (before the request starts to insure that it is
only executed once).
|
public WorkerRequestReservedMap(org.apache.hadoop.conf.Configuration conf)
conf
- Configurationpublic boolean reserveRequest(Integer workerId, long requestId)
workerId
- workerId of the requestrequestId
- Request idCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.