Errai 3.0.1-SNAPSHOT

org.jboss.errai.bus.server.io.buffers
Interface Buffer

All Known Implementing Classes:
TransmissionBuffer

public interface Buffer

Author:
Mike Brock

Method Summary
 int getBufferSize()
           
 int getHeadPositionBytes()
           
 long getHeadSequence()
           
 int getSegmentSize()
           
 int getTotalSegments()
           
 boolean read(ByteWriteAdapter outputStream, BufferColor bufferColor)
           
 boolean read(ByteWriteAdapter outputStream, BufferColor bufferColor, BufferFilter callback)
           
 boolean read(ByteWriteAdapter outputStream, BufferColor bufferColor, BufferFilter callback, long sequence)
           
 boolean readWait(ByteWriteAdapter outputStream, BufferColor bufferColor)
           
 boolean readWait(ByteWriteAdapter outputStream, BufferColor bufferColor, BufferFilter callback)
           
 boolean readWait(TimeUnit unit, long time, ByteWriteAdapter outputStream, BufferColor bufferColor)
           
 boolean readWait(TimeUnit unit, long time, ByteWriteAdapter outputStream, BufferColor bufferColor, BufferFilter callback)
           
 void write(InputStream inputStream, BufferColor bufferColor)
           
 void write(int writeSize, InputStream inputStream, BufferColor bufferColor)
           
 

Method Detail

write

void write(InputStream inputStream,
           BufferColor bufferColor)
           throws IOException
Throws:
IOException

write

void write(int writeSize,
           InputStream inputStream,
           BufferColor bufferColor)
           throws IOException
Throws:
IOException

read

boolean read(ByteWriteAdapter outputStream,
             BufferColor bufferColor)
             throws IOException
Throws:
IOException

read

boolean read(ByteWriteAdapter outputStream,
             BufferColor bufferColor,
             BufferFilter callback)
             throws IOException
Throws:
IOException

read

boolean read(ByteWriteAdapter outputStream,
             BufferColor bufferColor,
             BufferFilter callback,
             long sequence)
             throws IOException
Throws:
IOException

readWait

boolean readWait(ByteWriteAdapter outputStream,
                 BufferColor bufferColor)
                 throws IOException,
                        InterruptedException
Throws:
IOException
InterruptedException

readWait

boolean readWait(TimeUnit unit,
                 long time,
                 ByteWriteAdapter outputStream,
                 BufferColor bufferColor)
                 throws IOException,
                        InterruptedException
Throws:
IOException
InterruptedException

readWait

boolean readWait(ByteWriteAdapter outputStream,
                 BufferColor bufferColor,
                 BufferFilter callback)
                 throws IOException,
                        InterruptedException
Throws:
IOException
InterruptedException

readWait

boolean readWait(TimeUnit unit,
                 long time,
                 ByteWriteAdapter outputStream,
                 BufferColor bufferColor,
                 BufferFilter callback)
                 throws IOException,
                        InterruptedException
Throws:
IOException
InterruptedException

getHeadSequence

long getHeadSequence()

getHeadPositionBytes

int getHeadPositionBytes()

getBufferSize

int getBufferSize()

getTotalSegments

int getTotalSegments()

getSegmentSize

int getSegmentSize()

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.