com.sun.grizzly.tcp
Class SuspendResponseUtils

java.lang.Object
  extended by com.sun.grizzly.tcp.SuspendResponseUtils

public class SuspendResponseUtils
extends Object

Utility class, which implements general response suspension functionality.

Author:
Alexey Stashok

Constructor Summary
SuspendResponseUtils()
           
 
Method Summary
static void attach(SelectionKey selectionKey, Response.ResponseAttachment suspendedResponse)
           
static void detach(SelectionKey selectionKey)
           
static Response.ResponseAttachment get(SelectionKey selectionKey)
           
static boolean isSuspendedInCurrentThread()
           
static boolean removeSuspendedInCurrentThread()
           
static void setSuspendedInCurrentThread()
           
static void updateIdleTimeOutDelay(SelectionKey selectionKey, Response.ResponseAttachment suspendedResponse)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SuspendResponseUtils

public SuspendResponseUtils()
Method Detail

attach

public static void attach(SelectionKey selectionKey,
                          Response.ResponseAttachment suspendedResponse)

updateIdleTimeOutDelay

public static void updateIdleTimeOutDelay(SelectionKey selectionKey,
                                          Response.ResponseAttachment suspendedResponse)

detach

public static void detach(SelectionKey selectionKey)

get

public static Response.ResponseAttachment get(SelectionKey selectionKey)

isSuspendedInCurrentThread

public static boolean isSuspendedInCurrentThread()

setSuspendedInCurrentThread

public static void setSuspendedInCurrentThread()

removeSuspendedInCurrentThread

public static boolean removeSuspendedInCurrentThread()


Copyright © 2012 Oracle Corporation. All Rights Reserved.