Class ServerSentEvent

java.lang.Object
org.infinispan.rest.ServerSentEvent
All Implemented Interfaces:
io.netty.buffer.ByteBufHolder, io.netty.handler.codec.DecoderResultProvider, io.netty.handler.codec.http.HttpContent, io.netty.handler.codec.http.HttpObject, io.netty.util.ReferenceCounted

public class ServerSentEvent extends Object implements io.netty.handler.codec.http.HttpContent
  • Constructor Details

    • ServerSentEvent

      public ServerSentEvent(String event, String data)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • copy

      public io.netty.handler.codec.http.HttpContent copy()
      Specified by:
      copy in interface io.netty.buffer.ByteBufHolder
      Specified by:
      copy in interface io.netty.handler.codec.http.HttpContent
    • duplicate

      public io.netty.handler.codec.http.HttpContent duplicate()
      Specified by:
      duplicate in interface io.netty.buffer.ByteBufHolder
      Specified by:
      duplicate in interface io.netty.handler.codec.http.HttpContent
    • retainedDuplicate

      public io.netty.handler.codec.http.HttpContent retainedDuplicate()
      Specified by:
      retainedDuplicate in interface io.netty.buffer.ByteBufHolder
      Specified by:
      retainedDuplicate in interface io.netty.handler.codec.http.HttpContent
    • replace

      public io.netty.handler.codec.http.HttpContent replace(io.netty.buffer.ByteBuf content)
      Specified by:
      replace in interface io.netty.buffer.ByteBufHolder
      Specified by:
      replace in interface io.netty.handler.codec.http.HttpContent
    • retain

      public io.netty.handler.codec.http.HttpContent retain()
      Specified by:
      retain in interface io.netty.buffer.ByteBufHolder
      Specified by:
      retain in interface io.netty.handler.codec.http.HttpContent
      Specified by:
      retain in interface io.netty.util.ReferenceCounted
    • retain

      public io.netty.handler.codec.http.HttpContent retain(int increment)
      Specified by:
      retain in interface io.netty.buffer.ByteBufHolder
      Specified by:
      retain in interface io.netty.handler.codec.http.HttpContent
      Specified by:
      retain in interface io.netty.util.ReferenceCounted
    • touch

      public io.netty.handler.codec.http.HttpContent touch()
      Specified by:
      touch in interface io.netty.buffer.ByteBufHolder
      Specified by:
      touch in interface io.netty.handler.codec.http.HttpContent
      Specified by:
      touch in interface io.netty.util.ReferenceCounted
    • touch

      public io.netty.handler.codec.http.HttpContent touch(Object hint)
      Specified by:
      touch in interface io.netty.buffer.ByteBufHolder
      Specified by:
      touch in interface io.netty.handler.codec.http.HttpContent
      Specified by:
      touch in interface io.netty.util.ReferenceCounted
    • content

      public io.netty.buffer.ByteBuf content()
      Specified by:
      content in interface io.netty.buffer.ByteBufHolder
    • getDecoderResult

      public io.netty.handler.codec.DecoderResult getDecoderResult()
      Specified by:
      getDecoderResult in interface io.netty.handler.codec.http.HttpObject
    • decoderResult

      public io.netty.handler.codec.DecoderResult decoderResult()
      Specified by:
      decoderResult in interface io.netty.handler.codec.DecoderResultProvider
    • setDecoderResult

      public void setDecoderResult(io.netty.handler.codec.DecoderResult result)
      Specified by:
      setDecoderResult in interface io.netty.handler.codec.DecoderResultProvider
    • refCnt

      public int refCnt()
      Specified by:
      refCnt in interface io.netty.util.ReferenceCounted
    • release

      public boolean release()
      Specified by:
      release in interface io.netty.util.ReferenceCounted
    • release

      public boolean release(int i)
      Specified by:
      release in interface io.netty.util.ReferenceCounted