public class CachingDataWindow extends Object
Constructor and Description |
---|
CachingDataWindow(int size,
boolean blocking) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
disableBlocking() |
void |
enableBlocking() |
int |
get(byte[] tmp,
int offset,
int length) |
int |
get(ByteBuffer buffer) |
boolean |
hasRemaining() |
boolean |
isOpen() |
void |
put(ByteBuffer data) |
int |
remaining() |
void |
waitFor(long i) |
public void enableBlocking()
public void disableBlocking()
public boolean hasRemaining()
public void close()
public void put(ByteBuffer data)
public int get(byte[] tmp, int offset, int length)
public int get(ByteBuffer buffer)
public int remaining()
public boolean isOpen()
public void waitFor(long i) throws InterruptedException
InterruptedException
Copyright © 2024. All rights reserved.