GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Overview
  • Use
  • Tree
  • Deprecated
  • Index
  • Search
  • Help
  • io.netty.handler.codec.memcache
  • DefaultMemcacheContent

This view

  • Original page
  • New address

GeezerVison is showing netty.io — DefaultMemcacheContent (Netty API Reference (4.1.141.Final))

Class DefaultMemcacheContent

java.lang.Object
io.netty.util.AbstractReferenceCounted
io.netty.handler.codec.memcache.AbstractMemcacheObject
io.netty.handler.codec.memcache.DefaultMemcacheContent
All Implemented Interfaces:
ByteBufHolder, DecoderResultProvider, MemcacheContent, MemcacheObject, ReferenceCounted
Direct Known Subclasses:
DefaultLastMemcacheContent

@UnstableApi public class DefaultMemcacheContent extends AbstractMemcacheObject implements MemcacheContent
The default MemcacheContent implementation.
  • Constructor Summary

    Constructors
    Constructor
    Description
    DefaultMemcacheContent(ByteBuf content)
    Creates a new instance with the specified content.
  • Method Summary

    Modifier and Type
    Method
    Description
    ByteBuf
    content()
    Return the data which is held by this ByteBufHolder.
    MemcacheContent
    copy()
    Creates a deep copy of this ByteBufHolder.
    protected void
    deallocate()
    Called once AbstractReferenceCounted.refCnt() is equals 0.
    MemcacheContent
    duplicate()
    Duplicates this ByteBufHolder.
    MemcacheContent
    replace(ByteBuf content)
    Returns a new ByteBufHolder which contains the specified content.
    MemcacheContent
    retain()
    Increases the reference count by 1.
    MemcacheContent
    retain(int increment)
    Increases the reference count by the specified increment.
    MemcacheContent
    retainedDuplicate()
    Duplicates this ByteBufHolder.
    String
    toString()
     
    MemcacheContent
    touch()
    Records the current access location of this object for debugging purposes.
    MemcacheContent
    touch(Object hint)
    Records the current access location of this object with an additional arbitrary information for debugging purposes.

    Methods inherited from class AbstractMemcacheObject

    decoderResult, setDecoderResult
    Modifier and Type
    Method
    Description
    DecoderResult
    decoderResult()
    Returns the result of decoding this object.
    void
    setDecoderResult(DecoderResult result)
    Updates the result of decoding this object.

    Methods inherited from class AbstractReferenceCounted

    refCnt, release, release, setRefCnt
    Modifier and Type
    Method
    Description
    int
    refCnt()
    Returns the reference count of this object.
    boolean
    release()
    Decreases the reference count by 1 and deallocates this object if the reference count reaches at 0.
    boolean
    release(int decrement)
    Decreases the reference count by the specified decrement and deallocates this object if the reference count reaches at 0.
    protected final void
    setRefCnt(int refCnt)
    An unsafe operation intended for use by a subclass that sets the reference count of the buffer directly

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • DefaultMemcacheContent

      public DefaultMemcacheContent(ByteBuf content)
      Creates a new instance with the specified content.
  • Method Details

    • content

      public ByteBuf content()
      Description copied from interface: ByteBufHolder
      Return the data which is held by this ByteBufHolder.
      Specified by:
      content in interface ByteBufHolder
    • copy

      public MemcacheContent copy()
      Description copied from interface: ByteBufHolder
      Creates a deep copy of this ByteBufHolder.
      Specified by:
      copy in interface ByteBufHolder
      Specified by:
      copy in interface MemcacheContent
    • duplicate

      public MemcacheContent duplicate()
      Description copied from interface: ByteBufHolder
      Duplicates this ByteBufHolder. Be aware that this will not automatically call ByteBufHolder.retain().
      Specified by:
      duplicate in interface ByteBufHolder
      Specified by:
      duplicate in interface MemcacheContent
    • retainedDuplicate

      public MemcacheContent retainedDuplicate()
      Description copied from interface: ByteBufHolder
      Duplicates this ByteBufHolder. This method returns a retained duplicate unlike ByteBufHolder.duplicate().
      Specified by:
      retainedDuplicate in interface ByteBufHolder
      Specified by:
      retainedDuplicate in interface MemcacheContent
      See Also:
      • ByteBuf.retainedDuplicate()
    • replace

      public MemcacheContent replace(ByteBuf content)
      Description copied from interface: ByteBufHolder
      Returns a new ByteBufHolder which contains the specified content.
      Specified by:
      replace in interface ByteBufHolder
      Specified by:
      replace in interface MemcacheContent
    • retain

      public MemcacheContent retain()
      Description copied from interface: ReferenceCounted
      Increases the reference count by 1.
      Specified by:
      retain in interface ByteBufHolder
      Specified by:
      retain in interface MemcacheContent
      Specified by:
      retain in interface ReferenceCounted
      Overrides:
      retain in class AbstractReferenceCounted
    • retain

      public MemcacheContent retain(int increment)
      Description copied from interface: ReferenceCounted
      Increases the reference count by the specified increment.
      Specified by:
      retain in interface ByteBufHolder
      Specified by:
      retain in interface MemcacheContent
      Specified by:
      retain in interface ReferenceCounted
      Overrides:
      retain in class AbstractReferenceCounted
    • touch

      public MemcacheContent touch()
      Description copied from interface: ReferenceCounted
      Records the current access location of this object for debugging purposes. If this object is determined to be leaked, the information recorded by this operation will be provided to you via ResourceLeakDetector. This method is a shortcut to touch(null).
      Specified by:
      touch in interface ByteBufHolder
      Specified by:
      touch in interface MemcacheContent
      Specified by:
      touch in interface ReferenceCounted
      Overrides:
      touch in class AbstractReferenceCounted
    • touch

      public MemcacheContent touch(Object hint)
      Description copied from interface: ReferenceCounted
      Records the current access location of this object with an additional arbitrary information for debugging purposes. If this object is determined to be leaked, the information recorded by this operation will be provided to you via ResourceLeakDetector.
      Specified by:
      touch in interface ByteBufHolder
      Specified by:
      touch in interface MemcacheContent
      Specified by:
      touch in interface ReferenceCounted
    • deallocate

      protected void deallocate()
      Description copied from class: AbstractReferenceCounted
      Called once AbstractReferenceCounted.refCnt() is equals 0.
      Specified by:
      deallocate in class AbstractReferenceCounted
    • toString

      public String toString()
      Overrides:
      toString in class Object
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.