public interface PushMessage
| Modifier and Type | Method and Description |
|---|---|
List<Object> |
getContent()
Returns the notification message contents.
|
List<Object> |
getContent(Function<ByteBuffer,Object> decodeFunction)
Returns the notification message contents by applying a
decodeFunction on ByteBuffer elements. |
String |
getType() |
String getType()
List<Object> getContent()
getType()
using their appropriate Java representation. String data (simple and bulk) are represented as ByteBuffer
and can be decoded through StringCodec.decodeValue(ByteBuffer). ByteBuffer objects
are read-only buffers that share the content without sharing the read-position.getType().List<Object> getContent(Function<ByteBuffer,Object> decodeFunction)
decodeFunction on ByteBuffer elements. The
content contains all response value beginning with getType() using their appropriate Java representation. String
data (simple and bulk) are mapped using decodeFunction. Please note that buffer read positions are
tracked by this method so decode functions are not required to reset the position.getType().Copyright © 2022 lettuce.io. All rights reserved.