> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinetica.com/llms.txt
> Use this file to discover all available pages before exploring further.

# DropSessionRequest

> DropSessionRequest — Kinetica Java API

Package [com.gpudb.protocol](https://docs.kinetica.com/content/api/java/com/gpudb/protocol/package-summary.md)

# Class DropSessionRequest

[java.lang.Object](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html)
com.gpudb.protocol.DropSessionRequest

All Implemented Interfaces:`org.apache.avro.generic.GenericContainer`, `org.apache.avro.generic.IndexedRecord`

***

public class DropSessionRequest extends [Object](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html) implements org.apache.avro.generic.IndexedRecord

A set of parameters for [`GPUdb.dropSession`](https://docs.kinetica.com/content/api/java/com/gpudb/GPUdb/dropsession#dropSession\(com.gpudb.protocol.DropSessionRequest\)).
&#x20;Ends the client session named by the X-Kinetica-Session HTTP header of this request, dropping every session temp table (a table created in SQL as #name) that belongs to it. Objects outside the session that depend on those tables are invalidated, not dropped.&#x20;
&#x20;A client sends its session ID in the X-Kinetica-Session HTTP header to every endpoint (e.g., /execute/sql), and needs to call this endpoint only when a response's info map has carried session\_id\_used set to true.&#x20;
&#x20;Only the user that owns the session, or a system administrator, may drop it. Dropping an unknown session is a no-op.

<ul>
  <li>
    ## Constructor Summary

    Constructors

    ConstructorDescription`DropSessionRequest()`

    Constructs a DropSessionRequest object with default parameters.

    `DropSessionRequest(Map<String,String> options)`

    Constructs a DropSessionRequest object with the specified parameters.
  </li>

  <li>
    ## Method Summary

    All MethodsStatic MethodsInstance MethodsConcrete Methods

    Modifier and TypeMethodDescription`boolean``equals(Object obj)` `Object``get(int index)`

    This method supports the Avro framework and is not intended to be called directly by the user.

    `static org.apache.avro.Schema``getClassSchema()`

    This method supports the Avro framework and is not intended to be called directly by the user.

    `Map<String,String>``getOptions()`

    Optional parameters.

    `org.apache.avro.Schema``getSchema()`

    This method supports the Avro framework and is not intended to be called directly by the user.

    `int``hashCode()` `void``put(int index, Object value)`

    This method supports the Avro framework and is not intended to be called directly by the user.

    `DropSessionRequest``setOptions(Map<String,String> options)`

    Optional parameters.

    `String``toString()` 

    Methods inherited from class java.lang.[Object](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html)
    `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`
  </li>
</ul>

<ul>
  <li>
    ## Constructor Details

    <ul>
      <li>
        ### DropSessionRequest

        public DropSessionRequest()Constructs a DropSessionRequest object with default parameters.
      </li>

      <li>
        ### DropSessionRequest

        public DropSessionRequest<wbr />([Map](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Map.html)\<[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html),<wbr />[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html)> options)Constructs a DropSessionRequest object with the specified parameters.

        Parameters:`options` - Optional parameters. The default value is an empty [`Map`](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Map.html).
      </li>
    </ul>
  </li>

  <li>
    ## Method Details

    <ul>
      <li>
        ### getClassSchema

        public static org.apache.avro.Schema getClassSchema()This method supports the Avro framework and is not intended to be called directly by the user.

        Returns:The schema for the class.
      </li>

      <li>
        ### getOptions

        public [Map](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Map.html)\<[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html),<wbr />[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html)> getOptions()Optional parameters. The default value is an empty [`Map`](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Map.html).

        Returns:The current value of `options`.
      </li>

      <li>
        ### setOptions

        public [DropSessionRequest](https://docs.kinetica.com/content/api/java/com/gpudb/protocol/DropSessionRequest.md) setOptions<wbr />([Map](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Map.html)\<[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html),<wbr />[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html)> options)Optional parameters. The default value is an empty [`Map`](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Map.html).

        Parameters:`options` - The new value for `options`.Returns:`this` to mimic the builder pattern.
      </li>

      <li>
        ### getSchema

        public org.apache.avro.Schema getSchema()This method supports the Avro framework and is not intended to be called directly by the user.

        Specified by:`getSchema` in interface `org.apache.avro.generic.GenericContainer`Returns:The schema object describing this class.
      </li>

      <li>
        ### get

        public [Object](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html) get<wbr />(int index)This method supports the Avro framework and is not intended to be called directly by the user.

        Specified by:`get` in interface `org.apache.avro.generic.IndexedRecord`Parameters:`index` - the position of the field to getReturns:value of the field with the given index.Throws:`IndexOutOfBoundsException`
      </li>

      <li>
        ### put

        public void put<wbr />(int index, [Object](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html) value)This method supports the Avro framework and is not intended to be called directly by the user.

        Specified by:`put` in interface `org.apache.avro.generic.IndexedRecord`Parameters:`index` - the position of the field to set`value` - the value to setThrows:`IndexOutOfBoundsException`
      </li>

      <li>
        ### equals

        public boolean equals<wbr />([Object](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html) obj)

        Overrides:`equals` in class `Object`
      </li>

      <li>
        ### toString

        public [String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html) toString()

        Overrides:`toString` in class `Object`
      </li>

      <li>
        ### hashCode

        public int hashCode()

        Overrides:`hashCode` in class `Object`
      </li>
    </ul>
  </li>
</ul>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.