Package org.eclipse.net4j.buffer
Interface IBufferProvider
- All Known Subinterfaces:
IBufferPool
,IBufferPool.Introspection
,IBufferProvider.Introspection
,IBufferProvider.Notification
,InternalChannel
,InternalChannelMultiplexer
,InternalConnector
- All Known Implementing Classes:
Channel
,ChannelMultiplexer
,Connector
public interface IBufferProvider
Provides clients with the ability to obtain and retain
IBuffer
s.- Author:
- Eike Stepper
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Offers additional introspection features forbuffer providers
.static interface
Offers additional notification features forbuffer providers
. -
Method Summary
Modifier and TypeMethodDescriptionshort
Returns the capacity of the buffers provided byprovideBuffer()
.Provides a buffer from thisBufferProvider
.void
retainBuffer
(IBuffer buffer) Retains a buffer to thisBufferProvider
.
-
Method Details
-
getBufferCapacity
short getBufferCapacity()Returns the capacity of the buffers provided byprovideBuffer()
. -
provideBuffer
IBuffer provideBuffer()Provides a buffer from thisBufferProvider
. -
retainBuffer
Retains a buffer to thisBufferProvider
.
-