com.deltavsoft.rcfproto

## Class RcfProtoSession

- java.lang.Object
- - com.deltavsoft.rcfproto.RcfProtoSession

-     public class RcfProtoSession
      extends java.lang.Object

  Represents the server-side session associated with a RPC connection.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `delete()`
    `protected void` | `finalize()`
    `java.lang.String` | `getClientUsername()` Returns the Windows username of the client, if a NTLM or Kerberos transport protocol is being used.
    `long` | `getConnectionDuration()` Returns the duration of the client connection, in milliseconds.
    `boolean` | `getEnableCompression()` Returns true if compression is enabled for this server session, and false otherwise.
    `long` | `getRemoteCallCount()` Returns the number of remote calls executed on the server session so far.
    `java.math.BigInteger` | `getTotalBytesReceived()` Returns the total number of bytes received by the server session so far.
    `java.math.BigInteger` | `getTotalBytesSent()` Returns the total number of bytes sent from the server session so far.
    `TransportProtocol` | `getTransportProtocol()` Returns the transport protocol in use on this server session.
    `TransportType` | `getTransportType()` Returns the transport type of this server session.
    `boolean` | `isCanceled()` If true, indicates that the client canceled the RPC, so the server may as well give up on replying to it.
    `void` | `setFailed(java.lang.String reason)` Causes Failed() to return true on the client side.

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

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

- - ### Method Detail

    - #### finalize

          protected void finalize()

      Overrides:
        `finalize` in class `java.lang.Object`

    - #### delete

          public void delete()

    - #### setFailed

          public void setFailed(java.lang.String reason)

      Causes Failed() to return true on the client side. "reason" will be incorporated into the message returned by ErrorText(). If you find you need to return machine-readable information about failures, you should incorporate it into your response protocol buffer and should NOT call SetFailed().

    - #### isCanceled

          public boolean isCanceled()

      If true, indicates that the client canceled the RPC, so the server may as well give up on replying to it. The server should still call the final "done" callback.

    - #### getClientUsername

          public java.lang.String getClientUsername()

      Returns the Windows username of the client, if a NTLM or Kerberos transport protocol is being used.

    - #### getTransportProtocol

          public TransportProtocol getTransportProtocol()

      Returns the transport protocol in use on this server session.

    - #### getTransportType

          public TransportType getTransportType()

      Returns the transport type of this server session.

    - #### getEnableCompression

          public boolean getEnableCompression()

      Returns true if compression is enabled for this server session, and false otherwise. Compression is enabled by the client.

    - #### getConnectionDuration

          public long getConnectionDuration()

      Returns the duration of the client connection, in milliseconds.

    - #### getRemoteCallCount

          public long getRemoteCallCount()

      Returns the number of remote calls executed on the server session so far.

    - #### getTotalBytesReceived

          public java.math.BigInteger getTotalBytesReceived()

      Returns the total number of bytes received by the server session so far.

    - #### getTotalBytesSent

          public java.math.BigInteger getTotalBytesSent()

      Returns the total number of bytes sent from the server session so far.