E - 泛型public final class FileQueue<E> extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FileQueue.Builder |
| Modifier and Type | Method and Description |
|---|---|
static FileQueue.Builder |
builder() |
void |
close() |
E |
poll(Function<byte[],E> mapper) |
void |
put(byte[] data) |
void |
put(E element,
Function<E,byte[]> mapper) |
E |
take(Function<byte[],E> mapper) |
public static FileQueue.Builder builder()
public void put(byte[] data)
public E take(Function<byte[],E> mapper) throws InterruptedException
InterruptedExceptionpublic void close()
throws IOException
IOExceptionCopyright © 2025. All rights reserved.