org.jboss.messaging.core.asyncio.impl
Class TimedBuffer
java.lang.Object
org.jboss.messaging.core.asyncio.impl.TimedBuffer
public class TimedBuffer
- extends java.lang.Object
A TimedBuffer
- Author:
- Clebert Suconic, Tim Fox
Constructor Summary |
TimedBuffer(int size,
long timeout,
boolean flushOnSync,
boolean logRates)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TimedBuffer
public TimedBuffer(int size,
long timeout,
boolean flushOnSync,
boolean logRates)
start
public void start()
stop
public void stop()
setObserver
public void setObserver(TimedBufferObserver observer)
lock
public void lock()
unlock
public void unlock()
checkSize
public boolean checkSize(int sizeChecked)
- Verify if the size fits the buffer
- Parameters:
sizeChecked
-
- Returns:
addBytes
public void addBytes(byte[] bytes,
boolean sync,
AIOCallback callback)
flush
public void flush()
Copyright © 2006 JBoss Inc. All Rights Reserved.