From 52c45d7cdd5e423bd76dcab5d5325b321c134757 Mon Sep 17 00:00:00 2001 From: fhanik Date: Thu, 10 May 2007 15:58:29 +0000 Subject: [PATCH] added in unregister git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@536901 13f79535-47bb-0310-9956-ffa450edef68 --- java/org/apache/catalina/CometEvent.java | 9 +++++++++ java/org/apache/catalina/connector/CometEventImpl.java | 5 +++++ 2 files changed, 14 insertions(+) diff --git a/java/org/apache/catalina/CometEvent.java b/java/org/apache/catalina/CometEvent.java index 0eb838628..f29e51ffc 100644 --- a/java/org/apache/catalina/CometEvent.java +++ b/java/org/apache/catalina/CometEvent.java @@ -210,6 +210,15 @@ public interface CometEvent { throws IOException, IllegalStateException; /** + * Unregisters Comet operations for this CometConnection + * @param operations CometOperation[] + * @throws IOException + * @throws IllegalStateException + */ + public void unregister(CometOperation... operations) + throws IOException, IllegalStateException; + + /** * Returns what the current IO notifications that the Comet * connection is registered for. * @return CometOperations[] diff --git a/java/org/apache/catalina/connector/CometEventImpl.java b/java/org/apache/catalina/connector/CometEventImpl.java index b87773731..40058d1fe 100644 --- a/java/org/apache/catalina/connector/CometEventImpl.java +++ b/java/org/apache/catalina/connector/CometEventImpl.java @@ -138,6 +138,11 @@ public class CometEventImpl implements CometEvent { throws IOException, IllegalStateException { throw new UnsupportedOperationException(); } + + public void unregister(CometOperation... operations) + throws IOException, IllegalStateException { + throw new UnsupportedOperationException(); + } public CometConfiguration[] getConfiguration() { throw new UnsupportedOperationException(); -- 2.11.0