public class org.glassfish.grizzly.comet.CometContext extends java.lang.Object
{
protected static final java.lang.String INVALID_COMET_HANDLER;
protected static final java.lang.String ALREADY_REMOVED;
private static final java.lang.String COMET_NOT_ENABLED;
protected static final java.util.logging.Logger LOGGER;
private final java.util.Map attributes;
protected static final java.lang.ThreadLocal REQUEST_LOCAL;
protected java.lang.String topic;
private long expirationDelay;
protected org.glassfish.grizzly.comet.NotificationHandler notificationHandler;
private final java.util.List handlers;
protected final org.glassfish.grizzly.comet.CometEvent eventInterrupt;
protected final org.glassfish.grizzly.comet.CometEvent eventTerminate;
private final org.glassfish.grizzly.comet.CometEvent eventInitialize;
private boolean isDetectClosedConnections;
public void <init>(java.lang.String)
{
org.glassfish.grizzly.comet.CometContext v;
java.util.concurrent.ConcurrentHashMap v;
org.glassfish.grizzly.comet.CometEvent v, v, v;
org.glassfish.grizzly.comet.CometEvent$Type v, v, v;
java.lang.String v;
java.util.concurrent.CopyOnWriteArrayList v;
v := @this: org.glassfish.grizzly.comet.CometContext;
v := @parameter: java.lang.String;
specialinvoke v.<java.lang.Object: void <init>()>();
v.<org.glassfish.grizzly.comet.CometContext: boolean isDetectClosedConnections> = 1;
v.<org.glassfish.grizzly.comet.CometContext: java.lang.String topic> = v;
v = new java.util.concurrent.ConcurrentHashMap;
specialinvoke v.<java.util.concurrent.ConcurrentHashMap: void <init>()>();
v.<org.glassfish.grizzly.comet.CometContext: java.util.Map attributes> = v;
v = new java.util.concurrent.CopyOnWriteArrayList;
specialinvoke v.<java.util.concurrent.CopyOnWriteArrayList: void <init>()>();
v.<org.glassfish.grizzly.comet.CometContext: java.util.List handlers> = v;
v = new org.glassfish.grizzly.comet.CometEvent;
v = <org.glassfish.grizzly.comet.CometEvent$Type: org.glassfish.grizzly.comet.CometEvent$Type INTERRUPT>;
specialinvoke v.<org.glassfish.grizzly.comet.CometEvent: void <init>(org.glassfish.grizzly.comet.CometEvent$Type,org.glassfish.grizzly.comet.CometContext)>(v, v);
v.<org.glassfish.grizzly.comet.CometContext: org.glassfish.grizzly.comet.CometEvent eventInterrupt> = v;
v = new org.glassfish.grizzly.comet.CometEvent;
v = <org.glassfish.grizzly.comet.CometEvent$Type: org.glassfish.grizzly.comet.CometEvent$Type INITIALIZE>;
specialinvoke v.<org.glassfish.grizzly.comet.CometEvent: void <init>(org.glassfish.grizzly.comet.CometEvent$Type,org.glassfish.grizzly.comet.CometContext)>(v, v);
v.<org.glassfish.grizzly.comet.CometContext: org.glassfish.grizzly.comet.CometEvent eventInitialize> = v;
v = new org.glassfish.grizzly.comet.CometEvent;
v = <org.glassfish.grizzly.comet.CometEvent$Type: org.glassfish.grizzly.comet.CometEvent$Type TERMINATE>;
specialinvoke v.<org.glassfish.grizzly.comet.CometEvent: void <init>(org.glassfish.grizzly.comet.CometEvent$Type,org.glassfish.grizzly.comet.CometContext,java.lang.Object)>(v, v, v);
v.<org.glassfish.grizzly.comet.CometContext: org.glassfish.grizzly.comet.CometEvent eventTerminate> = v;
specialinvoke v.<org.glassfish.grizzly.comet.CometContext: void initDefaultValues()>();
return;
}
private void initDefaultValues()
{
org.glassfish.grizzly.comet.CometContext v;
v := @this: org.glassfish.grizzly.comet.CometContext;
v.<org.glassfish.grizzly.comet.CometContext: long expirationDelay> = -1L;
return;
}
public java.lang.String getContextPath()
{
org.glassfish.grizzly.comet.CometContext v;
java.lang.String v;
v := @this: org.glassfish.grizzly.comet.CometContext;
v = virtualinvoke v.<org.glassfish.grizzly.comet.CometContext: java.lang.String getTopic()>();
return v;
}
public java.lang.String getTopic()
{
org.glassfish.grizzly.comet.CometContext v;
java.lang.String v;
v := @this: org.glassfish.grizzly.comet.CometContext;
v = v.<org.glassfish.grizzly.comet.CometContext: java.lang.String topic>;
return v;
}
public void addAttribute(java.lang.Object, java.lang.Object)
{
org.glassfish.grizzly.comet.CometContext v;
java.util.Map v;
java.lang.Object v, v;
v := @this: org.glassfish.grizzly.comet.CometContext;
v := @parameter: java.lang.Object;
v := @parameter: java.lang.Object;
v = v.<org.glassfish.grizzly.comet.CometContext: java.util.Map attributes>;
interfaceinvoke v.<java.util.Map: java.lang.Object put(java.lang.Object,java.lang.Object)>(v, v);
return;
}
public java.lang.Object getAttribute(java.lang.Object)
{
org.glassfish.grizzly.comet.CometContext v;
java.util.Map v;
java.lang.Object v, v;
v := @this: org.glassfish.grizzly.comet.CometContext;
v := @parameter: java.lang.Object;
v = v.<org.glassfish.grizzly.comet.CometContext: java.util.Map attributes>;
v = interfaceinvoke v.<java.util.Map: java.lang.Object get(java.lang.Object)>(v);
return v;
}
public java.lang.Object removeAttribute(java.lang.Object)
{
org.glassfish.grizzly.comet.CometContext v;
java.util.Map v;
java.lang.Object v, v;
v := @this: org.glassfish.grizzly.comet.CometContext;
v := @parameter: java.lang.Object;
v = v.<org.glassfish.grizzly.comet.CometContext: java.util.Map attributes>;
v = interfaceinvoke v.<java.util.Map: java.lang.Object remove(java.lang.Object)>(v);
return v;
}
public int addCometHandler(org.glassfish.grizzly.comet.CometHandler)
{
java.lang.IllegalStateException v, v;
org.glassfish.grizzly.comet.CometContext v;
org.glassfish.grizzly.comet.CometContext$CometTimeoutHandler v;
org.glassfish.grizzly.http.server.Request v;
org.glassfish.grizzly.comet.CometContext$CometCompletionHandler v;
org.glassfish.grizzly.comet.CometHandler v;
long v;
org.glassfish.grizzly.http.server.Response v;
org.glassfish.grizzly.filterchain.FilterChainContext v;
int v;
java.lang.String v;
org.glassfish.grizzly.http.io.InputBuffer v;
boolean v, v;
java.lang.ThreadLocal v;
org.glassfish.grizzly.comet.CometEngine v;
java.io.IOException v;
java.lang.RuntimeException v;
java.util.concurrent.TimeUnit v;
java.util.List v;
org.glassfish.grizzly.http.util.Header v;
org.glassfish.grizzly.Connection v;
java.lang.Object v;
v := @this: org.glassfish.grizzly.comet.CometContext;
v := @parameter: org.glassfish.grizzly.comet.CometHandler;
if v != null goto label;
v = new java.lang.IllegalStateException;
specialinvoke v.<java.lang.IllegalStateException: void <init>(java.lang.String)>("CometHandler cannot be null. This CometHandler was probably resumed and an invalid reference was made to it.");
throw v;
label:
v = staticinvoke <org.glassfish.grizzly.comet.CometEngine: org.glassfish.grizzly.comet.CometEngine getEngine()>();
v = virtualinvoke v.<org.glassfish.grizzly.comet.CometEngine: boolean isCometEnabled()>();
if v != 0 goto label;
v = new java.lang.IllegalStateException;
specialinvoke v.<java.lang.IllegalStateException: void <init>(java.lang.String)>("Make sure you have enabled Comet or make sure the thread invoking that method is the same as the Servlet.service() thread.");
throw v;
label:
v = <org.glassfish.grizzly.comet.CometContext: java.lang.ThreadLocal REQUEST_LOCAL>;
v = virtualinvoke v.<java.lang.ThreadLocal: java.lang.Object get()>();
v = virtualinvoke v.<org.glassfish.grizzly.http.server.Request: org.glassfish.grizzly.http.server.Response getResponse()>();
v = virtualinvoke v.<org.glassfish.grizzly.http.server.Request: org.glassfish.grizzly.filterchain.FilterChainContext getContext()>();
v = virtualinvoke v.<org.glassfish.grizzly.filterchain.FilterChainContext: org.glassfish.grizzly.Connection getConnection()>();
interfaceinvoke v.<org.glassfish.grizzly.comet.CometHandler: void setResponse(org.glassfish.grizzly.http.server.Response)>(v);
interfaceinvoke v.<org.glassfish.grizzly.comet.CometHandler: void setCometContext(org.glassfish.grizzly.comet.CometContext)>(v);
label:
virtualinvoke v.<org.glassfish.grizzly.comet.CometContext: void initialize(org.glassfish.grizzly.comet.CometHandler)>(v);
v = new org.glassfish.grizzly.comet.CometContext$CometCompletionHandler;
specialinvoke v.<org.glassfish.grizzly.comet.CometContext$CometCompletionHandler: void <init>(org.glassfish.grizzly.comet.CometContext,org.glassfish.grizzly.comet.CometHandler)>(v, v);
interfaceinvoke v.<org.glassfish.grizzly.Connection: void addCloseListener(org.glassfish.grizzly.CloseListener)>(v);
v = virtualinvoke v.<org.glassfish.grizzly.comet.CometContext: long getExpirationDelay()>();
v = <java.util.concurrent.TimeUnit: java.util.concurrent.TimeUnit MILLISECONDS>;
v = new org.glassfish.grizzly.comet.CometContext$CometTimeoutHandler;
specialinvoke v.<org.glassfish.grizzly.comet.CometContext$CometTimeoutHandler: void <init>(org.glassfish.grizzly.comet.CometContext,org.glassfish.grizzly.comet.CometHandler)>(v, v);
virtualinvoke v.<org.glassfish.grizzly.http.server.Response: void suspend(long,java.util.concurrent.TimeUnit,org.glassfish.grizzly.CompletionHandler,org.glassfish.grizzly.http.server.TimeoutHandler)>(v, v, v, v);
v = v.<org.glassfish.grizzly.comet.CometContext: boolean isDetectClosedConnections>;
if v == 0 goto label;
v = <org.glassfish.grizzly.http.util.Header: org.glassfish.grizzly.http.util.Header Connection>;
virtualinvoke v.<org.glassfish.grizzly.http.server.Response: void addHeader(org.glassfish.grizzly.http.util.Header,java.lang.String)>(v, "close");
v = virtualinvoke v.<org.glassfish.grizzly.http.server.Response: org.glassfish.grizzly.http.server.Request getRequest()>();
v = virtualinvoke v.<org.glassfish.grizzly.http.server.Request: org.glassfish.grizzly.http.io.InputBuffer getInputBuffer()>();
virtualinvoke v.<org.glassfish.grizzly.http.io.InputBuffer: void initiateAsyncronousDataReceiving()>();
label:
v = v.<org.glassfish.grizzly.comet.CometContext: java.util.List handlers>;
interfaceinvoke v.<java.util.List: boolean add(java.lang.Object)>(v);
label:
goto label;
label:
v := @caughtexception;
v = new java.lang.RuntimeException;
v = virtualinvoke v.<java.io.IOException: java.lang.String getMessage()>();
specialinvoke v.<java.lang.RuntimeException: void <init>(java.lang.String,java.lang.Throwable)>(v, v);
throw v;
label:
v = virtualinvoke v.<java.lang.Object: int hashCode()>();
return v;
catch java.io.IOException from label to label with label;
}
public void recycle()
{
org.glassfish.grizzly.comet.CometContext v;
java.util.Iterator v;
org.glassfish.grizzly.comet.NotificationHandler v;
java.io.IOException v;
java.util.List v, v;
org.glassfish.grizzly.comet.CometEvent v;
org.glassfish.grizzly.comet.CometEvent$Type v;
java.util.Map v;
v := @this: org.glassfish.grizzly.comet.CometContext;
label:
v = v.<org.glassfish.grizzly.comet.CometContext: org.glassfish.grizzly.comet.NotificationHandler notificationHandler>;
v = new org.glassfish.grizzly.comet.CometEvent;
v = <org.glassfish.grizzly.comet.CometEvent$Type: org.glassfish.grizzly.comet.CometEvent$Type TERMINATE>;
specialinvoke v.<org.glassfish.grizzly.comet.CometEvent: void <init>(org.glassfish.grizzly.comet.CometEvent$Type,org.glassfish.grizzly.comet.CometContext,java.lang.Object)>(v, v, null);
v = v.<org.glassfish.grizzly.comet.CometContext: java.util.List handlers>;
v = interfaceinvoke v.<java.util.List: java.util.Iterator iterator()>();
interfaceinvoke v.<org.glassfish.grizzly.comet.NotificationHandler: void notify(org.glassfish.grizzly.comet.CometEvent,java.util.Iterator)>(v, v);
label:
goto label;
label:
v := @caughtexception;
label:
v = v.<org.glassfish.grizzly.comet.CometContext: java.util.List handlers>;
interfaceinvoke v.<java.util.List: void clear()>();
v = v.<org.glassfish.grizzly.comet.CometContext: java.util.Map attributes>;
interfaceinvoke v.<java.util.Map: void clear()>();
v.<org.glassfish.grizzly.comet.CometContext: java.lang.String topic> = null;
v.<org.glassfish.grizzly.comet.CometContext: org.glassfish.grizzly.comet.NotificationHandler notificationHandler> = null;
specialinvoke v.<org.glassfish.grizzly.comet.CometContext: void initDefaultValues()>();
return;
catch java.io.IOException from label to label with label;
}
protected void invokeCometHandler(org.glassfish.grizzly.comet.CometEvent, org.glassfish.grizzly.comet.CometHandler) throws java.io.IOException
{
java.lang.IllegalStateException v;
org.glassfish.grizzly.comet.CometContext v;
org.glassfish.grizzly.comet.CometEvent v;
org.glassfish.grizzly.comet.CometHandler v;
v := @this: org.glassfish.grizzly.comet.CometContext;
v := @parameter: org.glassfish.grizzly.comet.CometEvent;
v := @parameter: org.glassfish.grizzly.comet.CometHandler;
if v != null goto label;
v = new java.lang.IllegalStateException;
specialinvoke v.<java.lang.IllegalStateException: void <init>(java.lang.String)>("CometHandler cannot be null. This CometHandler was probably resumed and an invalid reference was made to it.");
throw v;
label:
virtualinvoke v.<org.glassfish.grizzly.comet.CometEvent: void setCometContext(org.glassfish.grizzly.comet.CometContext)>(v);
interfaceinvoke v.<org.glassfish.grizzly.comet.CometHandler: void onEvent(org.glassfish.grizzly.comet.CometEvent)>(v);
return;
}
public boolean removeCometHandler(org.glassfish.grizzly.comet.CometHandler)
{
org.glassfish.grizzly.comet.CometContext v;
org.glassfish.grizzly.comet.CometHandler v;
boolean v;
v := @this: org.glassfish.grizzly.comet.CometContext;
v := @parameter: org.glassfish.grizzly.comet.CometHandler;
v = virtualinvoke v.<org.glassfish.grizzly.comet.CometContext: boolean removeCometHandler(org.glassfish.grizzly.comet.CometHandler,boolean)>(v, 1);
return v;
}
public boolean removeCometHandler(org.glassfish.grizzly.comet.CometHandler, boolean)
{
org.glassfish.grizzly.comet.CometContext v;
java.util.List v;
org.glassfish.grizzly.comet.CometHandler v;
org.glassfish.grizzly.http.server.Response v;
boolean v, v;
v := @this: org.glassfish.grizzly.comet.CometContext;
v := @parameter: org.glassfish.grizzly.comet.CometHandler;
v := @parameter: boolean;
v = v.<org.glassfish.grizzly.comet.CometContext: java.util.List handlers>;
v = interfaceinvoke v.<java.util.List: boolean remove(java.lang.Object)>(v);
if v == 0 goto label;
if v == 0 goto label;
v = interfaceinvoke v.<org.glassfish.grizzly.comet.CometHandler: org.glassfish.grizzly.http.server.Response getResponse()>();
virtualinvoke v.<org.glassfish.grizzly.http.server.Response: void resume()>();
label:
return v;
}
public boolean resumeCometHandler(org.glassfish.grizzly.comet.CometHandler) throws java.io.IOException
{
org.glassfish.grizzly.comet.CometContext v;
org.glassfish.grizzly.comet.CometHandler v;
boolean v;
v := @this: org.glassfish.grizzly.comet.CometContext;
v := @parameter: org.glassfish.grizzly.comet.CometHandler;
v = virtualinvoke v.<org.glassfish.grizzly.comet.CometContext: boolean interrupt(org.glassfish.grizzly.comet.CometHandler,boolean)>(v, 0);
return v;
}
public boolean interrupt(org.glassfish.grizzly.comet.CometHandler, boolean) throws java.io.IOException
{
org.glassfish.grizzly.comet.CometContext v, v;
org.glassfish.grizzly.comet.CometHandler v;
boolean v, v;
v := @this: org.glassfish.grizzly.comet.CometContext;
v := @parameter: org.glassfish.grizzly.comet.CometHandler;
v := @parameter: boolean;
v = interfaceinvoke v.<org.glassfish.grizzly.comet.CometHandler: org.glassfish.grizzly.comet.CometContext getCometContext()>();
v = virtualinvoke v.<org.glassfish.grizzly.comet.CometContext: boolean removeCometHandler(org.glassfish.grizzly.comet.CometHandler,boolean)>(v, v);
if v == 0 goto label;
if v != 0 goto label;
virtualinvoke v.<org.glassfish.grizzly.comet.CometContext: void interrupt0(org.glassfish.grizzly.comet.CometHandler,boolean)>(v, v);
label:
return v;
}
protected void interrupt0(org.glassfish.grizzly.comet.CometHandler, boolean) throws java.io.IOException
{
org.glassfish.grizzly.comet.CometContext v;
org.glassfish.grizzly.comet.CometEvent v;
org.glassfish.grizzly.comet.CometHandler v;
java.io.IOException v;
org.glassfish.grizzly.http.server.Response v;
boolean v;
v := @this: org.glassfish.grizzly.comet.CometContext;
v := @parameter: org.glassfish.grizzly.comet.CometHandler;
v := @parameter: boolean;
if v == 0 goto label;
label:
v = v.<org.glassfish.grizzly.comet.CometContext: org.glassfish.grizzly.comet.CometEvent eventInterrupt>;
interfaceinvoke v.<org.glassfish.grizzly.comet.CometHandler: void onInterrupt(org.glassfish.grizzly.comet.CometEvent)>(v);
label:
goto label;
label:
v := @caughtexception;
label:
v = interfaceinvoke v.<org.glassfish.grizzly.comet.CometHandler: org.glassfish.grizzly.http.server.Response getResponse()>();
virtualinvoke v.<org.glassfish.grizzly.http.server.Response: void resume()>();
return;
catch java.io.IOException from label to label with label;
}
public boolean isActive(org.glassfish.grizzly.comet.CometHandler)
{
org.glassfish.grizzly.comet.CometContext v;
java.util.List v;
org.glassfish.grizzly.comet.CometHandler v;
boolean v;
v := @this: org.glassfish.grizzly.comet.CometContext;
v := @parameter: org.glassfish.grizzly.comet.CometHandler;
v = v.<org.glassfish.grizzly.comet.CometContext: java.util.List handlers>;
v = interfaceinvoke v.<java.util.List: boolean contains(java.lang.Object)>(v);
return v;
}
public void notify(java.lang.Object) throws java.io.IOException
{
org.glassfish.grizzly.comet.CometContext v;
java.lang.Object v;
org.glassfish.grizzly.comet.CometEvent$Type v;
v := @this: org.glassfish.grizzly.comet.CometContext;
v := @parameter: java.lang.Object;
v = <org.glassfish.grizzly.comet.CometEvent$Type: org.glassfish.grizzly.comet.CometEvent$Type NOTIFY>;
virtualinvoke v.<org.glassfish.grizzly.comet.CometContext: void notify(java.lang.Object,org.glassfish.grizzly.comet.CometEvent$Type)>(v, v);
return;
}
public void notify(java.lang.Object, org.glassfish.grizzly.comet.CometHandler) throws java.io.IOException
{
org.glassfish.grizzly.comet.CometContext v;
org.glassfish.grizzly.comet.CometEvent$Type v;
org.glassfish.grizzly.comet.CometHandler v;
java.lang.Object v;
v := @this: org.glassfish.grizzly.comet.CometContext;
v := @parameter: java.lang.Object;
v := @parameter: org.glassfish.grizzly.comet.CometHandler;
v = <org.glassfish.grizzly.comet.CometEvent$Type: org.glassfish.grizzly.comet.CometEvent$Type NOTIFY>;
virtualinvoke v.<org.glassfish.grizzly.comet.CometContext: void notify(java.lang.Object,org.glassfish.grizzly.comet.CometEvent$Type,org.glassfish.grizzly.comet.CometHandler)>(v, v, v);
return;
}
public void notify(java.lang.Object, org.glassfish.grizzly.comet.CometEvent$Type, org.glassfish.grizzly.comet.CometHandler) throws java.io.IOException
{
java.lang.IllegalStateException v;
org.glassfish.grizzly.comet.CometContext v;
org.glassfish.grizzly.comet.CometEvent v;
org.glassfish.grizzly.comet.CometEvent$Type v;
org.glassfish.grizzly.comet.CometHandler v;
org.glassfish.grizzly.comet.NotificationHandler v;
java.lang.Object v;
v := @this: org.glassfish.grizzly.comet.CometContext;
v := @parameter: java.lang.Object;
v := @parameter: org.glassfish.grizzly.comet.CometEvent$Type;
v := @parameter: org.glassfish.grizzly.comet.CometHandler;
if v != null goto label;
v = new java.lang.IllegalStateException;
specialinvoke v.<java.lang.IllegalStateException: void <init>(java.lang.String)>("CometHandler cannot be null. This CometHandler was probably resumed and an invalid reference was made to it.");
throw v;
label:
v = new org.glassfish.grizzly.comet.CometEvent;
specialinvoke v.<org.glassfish.grizzly.comet.CometEvent: void <init>(org.glassfish.grizzly.comet.CometEvent$Type,org.glassfish.grizzly.comet.CometContext,java.lang.Object)>(v, v, v);
v = v.<org.glassfish.grizzly.comet.CometContext: org.glassfish.grizzly.comet.NotificationHandler notificationHandler>;
interfaceinvoke v.<org.glassfish.grizzly.comet.NotificationHandler: void notify(org.glassfish.grizzly.comet.CometEvent,org.glassfish.grizzly.comet.CometHandler)>(v, v);
return;
}
public void notify(java.lang.Object, org.glassfish.grizzly.comet.CometEvent$Type) throws java.io.IOException
{
org.glassfish.grizzly.comet.CometContext v;
java.util.List v;
org.glassfish.grizzly.comet.CometEvent v;
java.util.Iterator v;
org.glassfish.grizzly.comet.CometEvent$Type v;
org.glassfish.grizzly.comet.NotificationHandler v;
java.lang.Object v;
v := @this: org.glassfish.grizzly.comet.CometContext;
v := @parameter: java.lang.Object;
v := @parameter: org.glassfish.grizzly.comet.CometEvent$Type;
v = v.<org.glassfish.grizzly.comet.CometContext: org.glassfish.grizzly.comet.NotificationHandler notificationHandler>;
v = new org.glassfish.grizzly.comet.CometEvent;
specialinvoke v.<org.glassfish.grizzly.comet.CometEvent: void <init>(org.glassfish.grizzly.comet.CometEvent$Type,org.glassfish.grizzly.comet.CometContext,java.lang.Object)>(v, v, v);
v = v.<org.glassfish.grizzly.comet.CometContext: java.util.List handlers>;
v = interfaceinvoke v.<java.util.List: java.util.Iterator iterator()>();
interfaceinvoke v.<org.glassfish.grizzly.comet.NotificationHandler: void notify(org.glassfish.grizzly.comet.CometEvent,java.util.Iterator)>(v, v);
return;
}
protected void initialize(org.glassfish.grizzly.comet.CometHandler) throws java.io.IOException
{
org.glassfish.grizzly.comet.CometContext v;
org.glassfish.grizzly.comet.CometEvent v;
org.glassfish.grizzly.comet.CometHandler v;
v := @this: org.glassfish.grizzly.comet.CometContext;
v := @parameter: org.glassfish.grizzly.comet.CometHandler;
v = v.<org.glassfish.grizzly.comet.CometContext: org.glassfish.grizzly.comet.CometEvent eventInitialize>;
interfaceinvoke v.<org.glassfish.grizzly.comet.CometHandler: void onInitialize(org.glassfish.grizzly.comet.CometEvent)>(v);
return;
}
public java.lang.String toString()
{
org.glassfish.grizzly.comet.CometContext v;
java.lang.String v;
v := @this: org.glassfish.grizzly.comet.CometContext;
v = v.<org.glassfish.grizzly.comet.CometContext: java.lang.String topic>;
return v;
}
public long getExpirationDelay()
{
org.glassfish.grizzly.comet.CometContext v;
long v;
v := @this: org.glassfish.grizzly.comet.CometContext;
v = v.<org.glassfish.grizzly.comet.CometContext: long expirationDelay>;
return v;
}
public void setExpirationDelay(long)
{
org.glassfish.grizzly.comet.CometContext v;
long v;
v := @this: org.glassfish.grizzly.comet.CometContext;
v := @parameter: long;
v.<org.glassfish.grizzly.comet.CometContext: long expirationDelay> = v;
return;
}
public java.util.List getCometHandlers()
{
org.glassfish.grizzly.comet.CometContext v;
java.util.List v;
v := @this: org.glassfish.grizzly.comet.CometContext;
v = v.<org.glassfish.grizzly.comet.CometContext: java.util.List handlers>;
return v;
}
public void setNotificationHandler(org.glassfish.grizzly.comet.NotificationHandler)
{
org.glassfish.grizzly.comet.CometContext v;
org.glassfish.grizzly.comet.NotificationHandler v;
v := @this: org.glassfish.grizzly.comet.CometContext;
v := @parameter: org.glassfish.grizzly.comet.NotificationHandler;
v.<org.glassfish.grizzly.comet.CometContext: org.glassfish.grizzly.comet.NotificationHandler notificationHandler> = v;
return;
}
public org.glassfish.grizzly.comet.NotificationHandler getNotificationHandler()
{
org.glassfish.grizzly.comet.CometContext v;
org.glassfish.grizzly.comet.NotificationHandler v;
v := @this: org.glassfish.grizzly.comet.CometContext;
v = v.<org.glassfish.grizzly.comet.CometContext: org.glassfish.grizzly.comet.NotificationHandler notificationHandler>;
return v;
}
public void setDetectClosedConnections(boolean)
{
org.glassfish.grizzly.comet.CometContext v;
boolean v;
v := @this: org.glassfish.grizzly.comet.CometContext;
v := @parameter: boolean;
v.<org.glassfish.grizzly.comet.CometContext: boolean isDetectClosedConnections> = v;
return;
}
public boolean isDetectClosedConnections()
{
org.glassfish.grizzly.comet.CometContext v;
boolean v;
v := @this: org.glassfish.grizzly.comet.CometContext;
v = v.<org.glassfish.grizzly.comet.CometContext: boolean isDetectClosedConnections>;
return v;
}
private static void notifyOnAsyncRead(org.glassfish.grizzly.comet.CometHandler)
{
org.glassfish.grizzly.comet.CometEvent v;
org.glassfish.grizzly.comet.CometEvent$Type v;
org.glassfish.grizzly.comet.CometHandler v;
java.io.IOException v;
java.lang.String v;
java.util.logging.Logger v;
java.util.logging.Level v;
v := @parameter: org.glassfish.grizzly.comet.CometHandler;
label:
v = new org.glassfish.grizzly.comet.CometEvent;
v = <org.glassfish.grizzly.comet.CometEvent$Type: org.glassfish.grizzly.comet.CometEvent$Type READ>;
specialinvoke v.<org.glassfish.grizzly.comet.CometEvent: void <init>(org.glassfish.grizzly.comet.CometEvent$Type)>(v);
interfaceinvoke v.<org.glassfish.grizzly.comet.CometHandler: void onEvent(org.glassfish.grizzly.comet.CometEvent)>(v);
label:
goto label;
label:
v := @caughtexception;
v = <org.glassfish.grizzly.comet.CometContext: java.util.logging.Logger LOGGER>;
v = <java.util.logging.Level: java.util.logging.Level FINE>;
v = virtualinvoke v.<java.io.IOException: java.lang.String getMessage()>();
virtualinvoke v.<java.util.logging.Logger: void log(java.util.logging.Level,java.lang.String)>(v, v);
label:
return;
catch java.io.IOException from label to label with label;
}
static void <clinit>()
{
java.lang.ThreadLocal v;
java.lang.Class v;
java.lang.String v;
java.util.logging.Logger v;
v = class "Lorg/glassfish/grizzly/comet/CometContext;";
v = virtualinvoke v.<java.lang.Class: java.lang.String getName()>();
v = staticinvoke <java.util.logging.Logger: java.util.logging.Logger getLogger(java.lang.String)>(v);
<org.glassfish.grizzly.comet.CometContext: java.util.logging.Logger LOGGER> = v;
v = new java.lang.ThreadLocal;
specialinvoke v.<java.lang.ThreadLocal: void <init>()>();
<org.glassfish.grizzly.comet.CometContext: java.lang.ThreadLocal REQUEST_LOCAL> = v;
return;
}
}