Interface MessagePoolAdapter

All Superinterfaces:
com.fishlib.io.sched.PooledMessage.Pool
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface
public interface MessagePoolAdapter
extends com.fishlib.io.sched.PooledMessage.Pool
Simplifying adapter interface for message pools, to allow a message just to take a recycle method reference.
  • Method Summary

    Modifier and Type Method Description
    default com.fishlib.io.sched.PooledMessage get()  
    default com.fishlib.io.sched.PooledMessage get​(int neededSize)  
    default int maxBufferSize()  
    default int minBufferSize()  

    Methods inherited from interface com.fishlib.io.sched.PooledMessage.Pool

    recycle
  • Method Details

    • minBufferSize

      default int minBufferSize()
      Specified by:
      minBufferSize in interface com.fishlib.io.sched.PooledMessage.Pool
    • maxBufferSize

      default int maxBufferSize()
      Specified by:
      maxBufferSize in interface com.fishlib.io.sched.PooledMessage.Pool
    • get

      default com.fishlib.io.sched.PooledMessage get​(int neededSize)
      Specified by:
      get in interface com.fishlib.io.sched.PooledMessage.Pool
    • get

      default com.fishlib.io.sched.PooledMessage get()
      Specified by:
      get in interface com.fishlib.io.sched.PooledMessage.Pool