public class TimingBufferSource extends Object implements BufferSource
| Constructor and Description |
|---|
TimingBufferSource(BufferSource source,
long slow,
TimeUnit slowUnit,
long critical,
TimeUnit criticalUnit,
boolean haltOnCritical) |
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
allocateBuffer(int size)
Allocates a buffer of the given size.
|
public TimingBufferSource(BufferSource source, long slow, TimeUnit slowUnit, long critical, TimeUnit criticalUnit, boolean haltOnCritical)
public ByteBuffer allocateBuffer(int size)
BufferSource
If a suitable buffer cannot be allocated then null should be
returned. Implementations may place restrictions on the valid size value
they will accept.
allocateBuffer in interface BufferSourcesize - required buffer sizeCopyright © 2015–2024. All rights reserved.