TMesg
- type of the messageTBuf
- type of the bufferpublic interface BufferRepository<TMesg,TBuf> extends Closeable
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the repository and all its buffers.
|
void |
offerBuffer(TBuf buffer,
TMesg message)
Stores a buffer in the repository.
|
TBuf |
pollBuffer(TMesg message)
Retrieves and removes a buffer from the store.
|
void offerBuffer(TBuf buffer, TMesg message)
buffer
- the buffer to storemessage
- the associated messageTBuf pollBuffer(TMesg message)
message
- the message that associated with the buffervoid close()
close
in interface AutoCloseable
close
in interface Closeable
Copyright © 2023. All Rights Reserved.