Interface OutputPrinter
-
public interface OutputPrinterConverts binary array fromCacheinto output format.In order to avoid unnecessary conversion steps, all methods need to return a byte array. This way Netty doesn't need to do any conversion - it just wraps it into a
ByteBuf.- Author:
- Sebastian Ćaskawiec
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.lang.StringasString(java.lang.Object k)byte[]print(java.lang.String cacheName, CacheSet<?> cacheSet, Charset charset)Converts all values in the cache to a desired output format.
-
-
-
Method Detail
-
print
byte[] print(java.lang.String cacheName, CacheSet<?> cacheSet, Charset charset) throws ServerInternalExceptionConverts all values in the cache to a desired output format.- Parameters:
cacheName- Cache name (sometimes might be used as xml or json key).cacheSet- Key Set.charset- DesiredCharset- Returns:
- Byte array representation of converted values.
- Throws:
ServerInternalException- Thrown if conversion was not successful.
-
asString
default java.lang.String asString(java.lang.Object k)
-
-