public class QueuingCallback extends Object implements RequestDoneCallback
RequestDoneCallback that adds the memory segments to a blocking queue.| Constructor and Description |
|---|
QueuingCallback(LinkedBlockingQueue<MemorySegment> queue) |
| Modifier and Type | Method and Description |
|---|---|
void |
requestFailed(MemorySegment buffer,
IOException e) |
void |
requestSuccessful(MemorySegment buffer) |
public QueuingCallback(LinkedBlockingQueue<MemorySegment> queue)
public void requestSuccessful(MemorySegment buffer)
requestSuccessful in interface RequestDoneCallbackpublic void requestFailed(MemorySegment buffer, IOException e)
requestFailed in interface RequestDoneCallbackCopyright © 2015 The Apache Software Foundation. All rights reserved.