org.apache.tinkerpop.gremlin.server.handler

## Class Frame

- java.lang.Object
- - org.apache.tinkerpop.gremlin.server.handler.Frame

-     public class Frame
      extends Object

  A holder for a `String` or `ByteBuf` that represents a message to be written back to the requesting client.
  Author:
    Stephen Mallette (http://stephen.genoprime.com)

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Frame(Object msg)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Object` | `getMsg()`
    `void` | `tryRelease()` If the object contained in the frame is `ReferenceCounted` then it may need to be released or else Netty will generate warnings that counted resources are leaking.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Frame

          public Frame(Object msg)

  - ### Method Detail

    - #### getMsg

          public Object getMsg()

    - #### tryRelease

          public void tryRelease()

      If the object contained in the frame is `ReferenceCounted` then it may need to be released or else Netty will generate warnings that counted resources are leaking.

Copyright © 2013–2020 Apache Software Foundation. All rights reserved.