All Packages  This Package  Class Hierarchy  Class Search  Index

Class edu.utah.janos.core.Buffer
java.lang.Object
   |
   +----edu.utah.janos.core.Buffer

  Summary

class  Buffer
     extends java.lang.Object
{
          // Fields 2
     byte[] data;
     private int refCount;

          // Constructors 1
     Buffer(byte[]);

          // Methods 5
     final synchronized void acquire();
     boolean charge(FlowState);
     final int getRefCount();
     void recycle();
     final synchronized void release();
}

The Buffer that a BufferHandle points to.


  Cross Reference

Extended By:
UdpBuffer

Returned By:
BufferHandle.getBuffer()





  Fields

· refCount

Summary  |  Top
   private int refCount


· data

Summary  |  Top
   byte[] data


  Constructors

· Buffer

Summary  |  Top

   Buffer(byte[] data) 


  Methods

· charge

Summary  |  Top
   boolean charge(FlowState state) 

Return true if the flow can afford the buffer.



· acquire

Summary  |  Top
   final synchronized void acquire() 


· release

Summary  |  Top
   final synchronized void release() 


· recycle

Summary  |  Top
   void recycle() 


· getRefCount

Summary  |  Top
   final int getRefCount() 


All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7