Module lettuce.core

Class OutputType

java.lang.Object
io.lettuce.core.dynamic.output.OutputType

public class OutputType
extends Object
Type descriptor for a CommandOutput.

This value object describes the primary output type and the produced TypeInformation by the CommandOutput type.

OutputType makes a distinction whether a CommandOutput is a StreamingOutput by providing streaming. Streaming outputs produce usually a component type hence they require an own OutputType descriptor.

Since:
5.0
Author:
Mark Paluch
  • Method Details

    • getTypeInformation

      public TypeInformation<?> getTypeInformation()
      Returns:
    • isStreaming

      public boolean isStreaming()
      Returns:
    • withCodec

      public ResolvableType withCodec​(RedisCodec<?,​?> codec)
    • getCommandOutputClass

      public Class<?> getCommandOutputClass()
      Returns:
    • toString

      public String toString()
      Overrides:
      toString in class Object